public class MetaData extends ASN1Object
MetaData ::= SEQUENCE { hashProtected BOOLEAN, fileName UTF8String OPTIONAL, mediaType IA5String OPTIONAL, otherMetaData Attributes OPTIONAL }
Modifier and Type | Field and Description |
---|---|
private DERUTF8String |
fileName |
private ASN1Boolean |
hashProtected |
private DERIA5String |
mediaType |
private Attributes |
otherMetaData |
Modifier | Constructor and Description |
---|---|
|
MetaData(ASN1Boolean hashProtected,
DERUTF8String fileName,
DERIA5String mediaType,
Attributes otherMetaData) |
private |
MetaData(ASN1Sequence seq) |
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, toASN1Object
private ASN1Boolean hashProtected
private DERUTF8String fileName
private DERIA5String mediaType
private Attributes otherMetaData
public MetaData(ASN1Boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes otherMetaData)
private MetaData(ASN1Sequence seq)
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()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
public boolean isHashProtected()
public DERUTF8String getFileName()
public DERIA5String getMediaType()
public Attributes getOtherMetaData()