2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
18 * @file FSecCert_Asn1Parser.h
19 * @brief This header file contains the declarations of base class for Asn1 parsing.
21 * This header file contains the declarations of base class for Asn1 parsing.
24 #ifndef _FSEC_CERT_INTERNAL_ASN1_PARSER_H_
25 #define _FSEC_CERT_INTERNAL_ASN1_PARSER_H_
27 #include <unique_ptr.h>
28 #include <FBaseObject.h>
30 namespace Tizen { namespace Security { namespace Cert
34 : public Tizen::Base::Object
40 virtual ~_Asn1Parser(void);
42 result Parse(byte* pAsnBuffer, int bufferSize);
44 result Parse(char* pFilePath);
47 virtual result ParseObject(void) = 0;
50 _Asn1Parser(const _Asn1Parser& rhs);
52 _Asn1Parser& operator =(const _Asn1Parser& rhs);
55 std::unique_ptr< byte[] > _pX509Buff;
61 } } } //Tizen::Security::Cert
63 #endif //_FSEC_CERT_INTERNAL_ASN1_PARSER_H_