Class CMSAlgorithmProtection

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CMSAlgorithmProtection(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, int type, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.ASN1Primitive
     

    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 Details

  • Constructor Details

    • CMSAlgorithmProtection

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

    • getInstance

      public static CMSAlgorithmProtection getInstance(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()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object