PKCS12BagAttributeCarrier (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.jce.interfaces

## Interface PKCS12BagAttributeCarrier

- All Known Implementing Classes:
    BCDHPrivateKey, BCDSAPrivateKey, BCDSTU4145PrivateKey, BCECGOST3410PrivateKey, BCECPrivateKey, BCElGamalPrivateKey, BCGOST3410PrivateKey, BCRSAPrivateCrtKey, BCRSAPrivateKey, JCEDHPrivateKey, JCEECPrivateKey, JCEElGamalPrivateKey, JCERSAPrivateCrtKey, JCERSAPrivateKey, JDKDSAPrivateKey, PKCS12BagAttributeCarrierImpl, X509CertificateObject

      public interface PKCS12BagAttributeCarrier

  allow us to set attributes on objects that can go into a PKCS12 store.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ASN1Encodable` | `getBagAttribute(ASN1ObjectIdentifier oid)`
    `java.util.Enumeration` | `getBagAttributeKeys()`
    `void` | `setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)`

- - ### Method Detail

    - #### setBagAttribute

          void setBagAttribute(ASN1ObjectIdentifier oid,
                             ASN1Encodable attribute)

    - #### getBagAttribute

          ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)

    - #### getBagAttributeKeys

          java.util.Enumeration getBagAttributeKeys()