Package org.bouncycastle.asn1.cms
Class MetaData
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.MetaData
- All Implemented Interfaces:
ASN1Encodable,Encodable
RFC 5544:
Binding Documents with Time-Stamps; MetaData object.
MetaData ::= SEQUENCE {
hashProtected BOOLEAN,
fileName UTF8String OPTIONAL,
mediaType IA5String OPTIONAL,
otherMetaData Attributes OPTIONAL
}
-
Constructor Summary
ConstructorsConstructorDescriptionMetaData(ASN1Boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes otherMetaData) -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaDatagetInstance(Object obj) Return a MetaData object from the given object.booleanMethod providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
MetaData
public MetaData(ASN1Boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes otherMetaData)
-
-
Method Details
-
getInstance
Return a MetaData object from the given object.Accepted inputs:
- null → null
-
MetaDataobject -
ASN1Sequenceinput formats with MetaData structure inside
- Parameters:
obj- the object we want converted.- Throws:
IllegalArgumentException- if the object cannot be converted.
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
isHashProtected
public boolean isHashProtected() -
getFileName
-
getMediaType
-
getOtherMetaData
-