Package org.bouncycastle.jce.interfaces

## Interface PKCS12BagAttributeCarrier

- All Known Implementing Classes:
    `BCDHPrivateKey`, `BCDSAPrivateKey`, `BCDSTU4145PrivateKey`, `BCECGOST3410_2012PrivateKey`, `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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | 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()