Package org.bouncycastle.asn1.cms
Class CMSAlgorithmProtection
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.CMSAlgorithmProtection
- All Implemented Interfaces:
ASN1Encodable,Encodable
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 -
Constructor Summary
ConstructorsConstructorDescriptionCMSAlgorithmProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionstatic CMSAlgorithmProtectiongetInstance(Object obj) Method providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
SIGNATURE
public static final int SIGNATURE- See Also:
-
MAC
public static final int MAC- See Also:
-
-
Constructor Details
-
CMSAlgorithmProtection
public CMSAlgorithmProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier)
-
-
Method Details
-
getInstance
-
getDigestAlgorithm
-
getMacAlgorithm
-
getSignatureAlgorithm
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-