Class PKCS12SecretBag


  • public class PKCS12SecretBag
    extends java.lang.Object
    Wrapper around the RFC 7292 SecretBag ASN.1 structure used by the PKCS#12 secretBag bag type.
    • Constructor Summary

      Constructors 
      Constructor Description
      PKCS12SecretBag​(org.bouncycastle.asn1.pkcs.SecretBag secretBag)
      Wrap an existing parsed SecretBag ASN.1 structure.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.asn1.ASN1ObjectIdentifier getSecretTypeId()
      Return the OID identifying the type of the secret.
      org.bouncycastle.asn1.ASN1Encodable getSecretValue()
      Return the secret value associated with this bag.
      org.bouncycastle.asn1.pkcs.SecretBag toASN1Structure()
      Return the underlying ASN.1 structure for this secret bag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PKCS12SecretBag

        public PKCS12SecretBag​(org.bouncycastle.asn1.pkcs.SecretBag secretBag)
        Wrap an existing parsed SecretBag ASN.1 structure.
        Parameters:
        secretBag - the underlying SecretBag.
    • Method Detail

      • toASN1Structure

        public org.bouncycastle.asn1.pkcs.SecretBag toASN1Structure()
        Return the underlying ASN.1 structure for this secret bag.
      • getSecretTypeId

        public org.bouncycastle.asn1.ASN1ObjectIdentifier getSecretTypeId()
        Return the OID identifying the type of the secret.
      • getSecretValue

        public org.bouncycastle.asn1.ASN1Encodable getSecretValue()
        Return the secret value associated with this bag.