public class CMSAlgorithmProtection
extends org.bouncycastle.asn1.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(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm,
int type,
org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithm() |
static CMSAlgorithmProtection |
getInstance(java.lang.Object obj) |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getMacAlgorithm() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getSignatureAlgorithm() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public static final int SIGNATURE
public static final int MAC
public CMSAlgorithmProtection(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm,
int type,
org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
public static CMSAlgorithmProtection getInstance(java.lang.Object obj)
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMacAlgorithm()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive in interface org.bouncycastle.asn1.ASN1EncodabletoASN1Primitive in class org.bouncycastle.asn1.ASN1Object