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

public Class CCMParameters

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.util.Arrays

RFC 5084: CCMParameters object.

CCMParameters ::= SEQUENCE {
  aes-nonce        OCTET STRING, -- recommended size is 12 octets
  aes-ICVlen       AES-CCM-ICVlen DEFAULT 12 }

Field Summary

Modifier and TypeField and Description
private int
private byte[]

Constructor Summary

AccessConstructor and Description
private
public
CCMParameters(byte[] nonce, int icvLen)

Method Summary

Modifier and TypeMethod and Description
public int
public static CCMParameters
getInstance(Object
the object we want converted.
obj
)

Return an CCMParameters object from the given object.

public byte[]
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

icvLenback to summary
private int icvLen
nonceback to summary
private byte[] nonce

Constructor Detail

CCMParametersback to summary
private CCMParameters(ASN1Sequence seq)
CCMParametersback to summary
public CCMParameters(byte[] nonce, int icvLen)

Method Detail

getIcvLenback to summary
public int getIcvLen()
getInstanceback to summary
public static CCMParameters getInstance(Object obj)

Return an CCMParameters object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getNonceback to summary
public byte[] getNonce()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.