public class KEKIdentifier extends ASN1Encodable
BER, DER
Constructor and Description |
---|
KEKIdentifier(ASN1Sequence seq) |
KEKIdentifier(byte[] keyIdentifier,
DERGeneralizedTime date,
OtherKeyAttribute other) |
Modifier and Type | Method and Description |
---|---|
DERGeneralizedTime |
getDate() |
static KEKIdentifier |
getInstance(ASN1TaggedObject obj,
boolean explicit)
return a KEKIdentifier object from a tagged object.
|
static KEKIdentifier |
getInstance(Object obj)
return a KEKIdentifier object from the given object.
|
ASN1OctetString |
getKeyIdentifier() |
OtherKeyAttribute |
getOther() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public KEKIdentifier(byte[] keyIdentifier, DERGeneralizedTime date, OtherKeyAttribute other)
public KEKIdentifier(ASN1Sequence seq)
public static KEKIdentifier getInstance(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.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static KEKIdentifier getInstance(Object obj)
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public ASN1OctetString getKeyIdentifier()
public DERGeneralizedTime getDate()
public OtherKeyAttribute getOther()
public DERObject toASN1Object()
KEKIdentifier ::= SEQUENCE { keyIdentifier OCTET STRING, date GeneralizedTime OPTIONAL, other OtherKeyAttribute OPTIONAL }
toASN1Object
in class ASN1Encodable
Copyright © 2015. All rights reserved.