Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class MetaData

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Boolean, .ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DERIA5String, .DERSequence, .DERUTF8String

RFC 5544: Binding Documents with Time-Stamps; MetaData object.

MetaData ::= SEQUENCE {
  hashProtected        BOOLEAN,
  fileName             UTF8String OPTIONAL,
  mediaType            IA5String OPTIONAL,
  otherMetaData        Attributes OPTIONAL
}

Field Summary

Modifier and TypeField and Description
private DERUTF8String
private ASN1Boolean
private DERIA5String
private Attributes

Constructor Summary

AccessConstructor and Description
public
MetaData(ASN1Boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes otherMetaData)

private

Method Summary

Modifier and TypeMethod and Description
public DERUTF8String
public static MetaData
getInstance(Object
the object we want converted.
obj
)

Return a MetaData object from the given object.

public DERIA5String
public Attributes
public boolean
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

fileNameback to summary
private DERUTF8String fileName
hashProtectedback to summary
private ASN1Boolean hashProtected
mediaTypeback to summary
private DERIA5String mediaType
otherMetaDataback to summary
private Attributes otherMetaData

Constructor Detail

MetaDataback to summary
public MetaData(ASN1Boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes otherMetaData)
MetaDataback to summary
private MetaData(ASN1Sequence seq)

Method Detail

getFileNameback to summary
public DERUTF8String getFileName()
getInstanceback to summary
public static MetaData getInstance(Object obj)

Return a MetaData object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getMediaTypeback to summary
public DERIA5String getMediaType()
getOtherMetaDataback to summary
public Attributes getOtherMetaData()
isHashProtectedback to summary
public boolean isHashProtected()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.