Bouncy Castle Cryptography Library 1.79

org.bouncycastle.asn1.cms
Class CMSAlgorithmProtection

java.lang.Object
  extended byorg.bouncycastle.asn1.ASN1Object
      extended byorg.bouncycastle.asn1.cms.CMSAlgorithmProtection
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class CMSAlgorithmProtection
extends org.bouncycastle.asn1.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
static int MAC
           
static int SIGNATURE
           
 
Constructor Summary
CMSAlgorithmProtection(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, int type, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNATURE

public static final int SIGNATURE
See Also:
Constant Field Values

MAC

public static final int MAC
See Also:
Constant Field Values
Constructor Detail

CMSAlgorithmProtection

public CMSAlgorithmProtection(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm,
                              int type,
                              org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
Method Detail

getInstance

public static CMSAlgorithmProtection getInstance(java.lang.Object obj)

getDigestAlgorithm

public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()

getMacAlgorithm

public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMacAlgorithm()

getSignatureAlgorithm

public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm()

toASN1Primitive

public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()

Bouncy Castle Cryptography Library 1.79