Package org.bouncycastle.asn1.bc
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 aPBEKeystored 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 Summary
Constructors Constructor Description PbkdKeyData(java.lang.String keyAlgorithm, byte[] password, byte[] salt, int iterationCount, byte[] encoded)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PbkdKeyDatagetInstance(java.lang.Object o)intgetIterationCount()java.lang.StringgetKeyAlgorithm()byte[]getKeyEncoding()byte[]getPassword()byte[]getSalt()ASN1PrimitivetoASN1Primitive()Method providing a primitive representation of this object suitable for encoding.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Method Detail
-
getInstance
public static PbkdKeyData getInstance(java.lang.Object o)
-
getKeyAlgorithm
public java.lang.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:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
-