Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class KEKIdentifier

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1GeneralizedTime, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence

RFC 5652: Content encryption key delivery mechanisms.

KEKIdentifier ::= SEQUENCE {
    keyIdentifier OCTET STRING,
    date GeneralizedTime OPTIONAL,
    other OtherKeyAttribute OPTIONAL 
}

Field Summary

Modifier and TypeField and Description
private ASN1GeneralizedTime
private ASN1OctetString
private OtherKeyAttribute

Constructor Summary

AccessConstructor and Description
public
KEKIdentifier(byte[] keyIdentifier, ASN1GeneralizedTime date, OtherKeyAttribute other)

private

Method Summary

Modifier and TypeMethod and Description
public ASN1GeneralizedTime
public static KEKIdentifier
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
obj
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
explicit
)

Return a KEKIdentifier object from a tagged object.

public static KEKIdentifier
getInstance(Object
the object we want converted.
obj
)

Return a KEKIdentifier object from the given object.

public ASN1OctetString
public OtherKeyAttribute
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

dateback to summary
private ASN1GeneralizedTime date
keyIdentifierback to summary
private ASN1OctetString keyIdentifier
otherback to summary
private OtherKeyAttribute other

Constructor Detail

KEKIdentifierback to summary
public KEKIdentifier(byte[] keyIdentifier, ASN1GeneralizedTime date, OtherKeyAttribute other)
KEKIdentifierback to summary
private KEKIdentifier(ASN1Sequence seq)

Method Detail

getDateback to summary
public ASN1GeneralizedTime getDate()
getInstanceback to summary
public static KEKIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)

Return a KEKIdentifier object from a tagged object.

Parameters
obj:ASN1TaggedObject

the tagged object holding the object we want.

explicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static KEKIdentifier getInstance(Object obj)

Return a KEKIdentifier object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getKeyIdentifierback to summary
public ASN1OctetString getKeyIdentifier()
getOtherback to summary
public OtherKeyAttribute getOther()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.