codec.pkcs7
Class Data

java.lang.Object
  |
  +--codec.asn1.ASN1AbstractType
        |
        +--codec.asn1.ASN1OctetString
              |
              +--codec.pkcs7.Data
All Implemented Interfaces:
ASN1RegisteredType, ASN1Type, Cloneable, Externalizable, Serializable

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,v 1.3 2005/03/22 13:36:21 flautens Exp $"
Author:
Volker Roth
See Also:
Serialized Form

Constructor Summary
Data()
          Creates an empty instance ready for parsing.
Data(byte[] content)
          Creates an instance initialized with the given contents octets.
 
Method Summary
 ASN1ObjectIdentifier getOID()
          Returns the OID of this structure.
 String toString()
          DOCUMENT ME!
 
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, readExternal, setConstraint, setExplicit, setOptional, writeExternal
 
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
 

Constructor Detail

Data

public Data()
Creates an empty instance ready for parsing.

Data

public Data(byte[] content)
Creates an instance initialized 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()
DOCUMENT ME!
Overrides:
toString in class ASN1OctetString
Returns:
DOCUMENT ME!


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.