public class CMSAlgorithmProtection extends ASN1Object
CMSAlgorithmProtection ::= SEQUENCE { digestAlgorithm DigestAlgorithmIdentifier, signatureAlgorithm [1] SignatureAlgorithmIdentifier OPTIONAL, macAlgorithm [2] MessageAuthenticationCodeAlgorithm OPTIONAL } (WITH COMPONENTS { signatureAlgorithm PRESENT, macAlgorithm ABSENT } | WITH COMPONENTS { signatureAlgorithm ABSENT, macAlgorithm PRESENT })
Constructor and Description |
---|
CMSAlgorithmProtection(AlgorithmIdentifier digestAlgorithm,
int type,
AlgorithmIdentifier algorithmIdentifier) |
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getDigestAlgorithm() |
static CMSAlgorithmProtection |
getInstance(java.lang.Object obj) |
AlgorithmIdentifier |
getMacAlgorithm() |
AlgorithmIdentifier |
getSignatureAlgorithm() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public static final int SIGNATURE
public static final int MAC
public CMSAlgorithmProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier)
public static CMSAlgorithmProtection getInstance(java.lang.Object obj)
public AlgorithmIdentifier getDigestAlgorithm()
public AlgorithmIdentifier getMacAlgorithm()
public AlgorithmIdentifier getSignatureAlgorithm()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object