Class CMSAlgorithmProtection
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
public class CMSAlgorithmProtection extends ASN1Object
From RFC 6211
CMSAlgorithmProtection ::= SEQUENCE { digestAlgorithm DigestAlgorithmIdentifier, signatureAlgorithm [1] SignatureAlgorithmIdentifier OPTIONAL, macAlgorithm [2] MessageAuthenticationCodeAlgorithm OPTIONAL } (WITH COMPONENTS { signatureAlgorithm PRESENT, macAlgorithm ABSENT } | WITH COMPONENTS { signatureAlgorithm ABSENT, macAlgorithm PRESENT })
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
SIGNATURE
public final static int
MAC
public final AlgorithmIdentifier
digestAlgorithm
public final AlgorithmIdentifier
signatureAlgorithm
public final AlgorithmIdentifier
macAlgorithm
-
Constructor Summary
Constructors Constructor Description CMSAlgorithmProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier)
-
Method Summary
Modifier and Type Method Description AlgorithmIdentifier
getDigestAlgorithm()
AlgorithmIdentifier
getSignatureAlgorithm()
AlgorithmIdentifier
getMacAlgorithm()
static CMSAlgorithmProtection
getInstance(Object obj)
ASN1Primitive
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. -
-
Constructor Detail
-
CMSAlgorithmProtection
CMSAlgorithmProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier)
-
-
Method Detail
-
getDigestAlgorithm
AlgorithmIdentifier getDigestAlgorithm()
-
getSignatureAlgorithm
AlgorithmIdentifier getSignatureAlgorithm()
-
getMacAlgorithm
AlgorithmIdentifier getMacAlgorithm()
-
getInstance
static CMSAlgorithmProtection getInstance(Object obj)
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
- Returns:
a primitive representation of this object.
-
-
-
-