public class KeySpecificInfo extends ASN1Object
KeySpecificInfo ::= SEQUENCE { algorithm OBJECT IDENTIFIER, counter OCTET STRING SIZE (4..4) }
Constructor and Description |
---|
KeySpecificInfo(ASN1ObjectIdentifier algorithm,
ASN1OctetString counter)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
ASN1ObjectIdentifier |
getAlgorithm()
The object identifier for the CEK wrapping algorithm.
|
ASN1OctetString |
getCounter()
The initial counter value for key derivation.
|
static KeySpecificInfo |
getInstance(java.lang.Object obj)
Return a KeySpecificInfo object from the passed in object.
|
ASN1Primitive |
toASN1Primitive()
Return an ASN.1 primitive representation of this object.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public KeySpecificInfo(ASN1ObjectIdentifier algorithm, ASN1OctetString counter)
algorithm
- algorithm identifier for the CEK.counter
- initial counter value for key derivation.public static KeySpecificInfo getInstance(java.lang.Object obj)
obj
- an object for conversion or a byte[].public ASN1ObjectIdentifier getAlgorithm()
public ASN1OctetString getCounter()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object