Class PbkdKeyData

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.bc.PbkdKeyData
All Implemented Interfaces:
ASN1Encodable, Encodable

public class PbkdKeyData extends ASN1Object
Carrier for the contents of a PBEKey stored in a BCFKS keystore.
     PbkdKeyData ::= SEQUENCE {
         keyAlgorithm   UTF8String,
         password       OCTET STRING,
         salt           [0] IMPLICIT OCTET STRING OPTIONAL,
         iterationCount [1] IMPLICIT INTEGER OPTIONAL,
         encoded        [2] IMPLICIT OCTET STRING OPTIONAL
     }
 
  • Constructor Details

    • PbkdKeyData

      public PbkdKeyData(String keyAlgorithm, byte[] password, byte[] salt, int iterationCount, byte[] encoded)
  • Method Details

    • getInstance

      public static PbkdKeyData getInstance(Object o)
    • getKeyAlgorithm

      public String getKeyAlgorithm()
    • getPassword

      public byte[] getPassword()
    • getSalt

      public byte[] getSalt()
    • getIterationCount

      public int getIterationCount()
    • getKeyEncoding

      public byte[] getKeyEncoding()
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
      Description copied from class: ASN1Object
      Method providing a primitive representation of this object suitable for encoding.
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
      Returns:
      a primitive representation of this object.