codec.pkcs7
Class Data

java.lang.Object
  extended by codec.asn1.ASN1AbstractType
      extended by codec.asn1.ASN1OctetString
          extended by 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.
 
Method Summary
 ASN1ObjectIdentifier getOID()
          Returns the OID of this structure.
 String toString()
           
 
Methods inherited from class codec.asn1.ASN1OctetString
byteCount, clone, decode, encode, getByteArray, getTag, getValue, setByteArray
 
Methods inherited from class codec.asn1.ASN1AbstractType
checkConstraints, getConstraint, getTagClass, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface codec.asn1.ASN1Type
checkConstraints, decode, encode, getConstraint, getTag, getTagClass, getValue, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional
 

Field Detail

oid_

private static final int[] oid_
The OID of this structure. PKCS#7 Data

Constructor Detail

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.
Method Detail

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.