public class KEKIdentifier
extends org.bouncycastle.asn1.ASN1Object
KEKIdentifier ::= SEQUENCE { keyIdentifier OCTET STRING, date GeneralizedTime OPTIONAL, other OtherKeyAttribute OPTIONAL }
Constructor and Description |
---|
KEKIdentifier(byte[] keyIdentifier,
org.bouncycastle.asn1.ASN1GeneralizedTime date,
OtherKeyAttribute other) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.ASN1GeneralizedTime |
getDate() |
static KEKIdentifier |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean explicit)
Return a KEKIdentifier object from a tagged object.
|
static KEKIdentifier |
getInstance(java.lang.Object obj)
Return a KEKIdentifier object from the given object.
|
org.bouncycastle.asn1.ASN1OctetString |
getKeyIdentifier() |
OtherKeyAttribute |
getOther() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
public KEKIdentifier(byte[] keyIdentifier, org.bouncycastle.asn1.ASN1GeneralizedTime date, OtherKeyAttribute other)
public static KEKIdentifier getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object holding the object we want.explicit
- true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static KEKIdentifier getInstance(java.lang.Object obj)
Accepted inputs:
KEKIdentifier
object
ASN1Sequence
input formats with KEKIdentifier structure inside
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.ASN1OctetString getKeyIdentifier()
public org.bouncycastle.asn1.ASN1GeneralizedTime getDate()
public OtherKeyAttribute getOther()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object