public class MetaData extends ASN1Object
MetaData ::= SEQUENCE {
hashProtected BOOLEAN,
fileName UTF8String OPTIONAL,
mediaType IA5String OPTIONAL,
otherMetaData Attributes OPTIONAL
}
| Constructor and Description |
|---|
MetaData(ASN1Boolean hashProtected,
DERUTF8String fileName,
DERIA5String mediaType,
Attributes otherMetaData) |
| Modifier and Type | Method and Description |
|---|---|
DERUTF8String |
getFileName() |
static MetaData |
getInstance(java.lang.Object obj)
Return a MetaData object from the given object.
|
DERIA5String |
getMediaType() |
Attributes |
getOtherMetaData() |
boolean |
isHashProtected() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectpublic MetaData(ASN1Boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes otherMetaData)
public static MetaData getInstance(java.lang.Object obj)
Accepted inputs:
MetaData object
ASN1Sequence input formats with MetaData structure inside
obj - the object we want converted.java.lang.IllegalArgumentException - if the object cannot be converted.public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Objectpublic boolean isHashProtected()
public DERUTF8String getFileName()
public DERIA5String getMediaType()
public Attributes getOtherMetaData()