codec.pkcs7
Class Data
java.lang.Object
codec.asn1.ASN1AbstractType
codec.asn1.ASN1OctetString
codec.pkcs7.Data
- All Implemented Interfaces:
- ASN1RegisteredType, ASN1Type, Cloneable
public class Data
- extends ASN1OctetString
- implements ASN1RegisteredType
This class represents the PKCS#7 Data type that is
defined as:
Data ::= OCTET STRING
It serves as a wrapper around arbitrary contents octets.
- Version:
- "$Id: Data.java 1913 2007-08-08 02:41:53Z jpeters $"
- Author:
- Volker Roth
Field Summary |
private static int[] |
oid_
The OID of this structure. |
Constructor Summary |
Data()
Creates an empty instance ready for parsing. |
Data(byte[] content)
Creates an instance initialised with the given
contents octets. |
Methods inherited from interface codec.asn1.ASN1Type |
checkConstraints, decode, encode, getConstraint, getTag, getTagClass, getValue, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional |
oid_
private static final int[] oid_
- The OID of this structure. PKCS#7 Data
Data
public Data()
- Creates an empty instance ready for parsing.
Data
public Data(byte[] content)
- Creates an instance initialised with the given
contents octets.
- Parameters:
content
- The content of this structure.
getOID
public ASN1ObjectIdentifier getOID()
- Returns the OID of this structure.
- Specified by:
getOID
in interface ASN1RegisteredType
- Returns:
- The OID.
toString
public String toString()
- Overrides:
toString
in class ASN1OctetString
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.