2 * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 /* standard library header */
23 /* SLP library header */
26 #include "FileObject.h"
27 #include "PKCS15DODF.h"
31 namespace smartcard_service_api
33 class PKCS15ODF: public PKCS15Object
36 bool parseData(ByteArray data);
40 static const unsigned int ODF_FID = 0x3150;
42 static const unsigned int TAG_DODF = (unsigned int)0xA7;
43 static const unsigned int TAG_TOKENINFO = (unsigned int)0xA5;
46 PKCS15ODF(Channel *channel);
47 PKCS15ODF(Channel *channel, ByteArray selectResponse);
50 int getPuKDFPath(ByteArray &path);
51 int getPrKDFPath(ByteArray &path);
52 int getAODFPath(ByteArray &path);
53 int getCDFFPath(ByteArray &path);
54 int getDODFPath(ByteArray &path);
56 PKCS15DODF *getDODF();
59 } /* namespace smartcard_service_api */
60 #endif /* PKCS15ODF_H_ */