Package org.bouncycastle.asn1.bc
Class PbkdKeyData
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.bc.PbkdKeyData
- All Implemented Interfaces:
ASN1Encodable,Encodable
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 Summary
ConstructorsConstructorDescriptionPbkdKeyData(String keyAlgorithm, byte[] password, byte[] salt, int iterationCount, byte[] encoded) -
Method Summary
Modifier and TypeMethodDescriptionstatic PbkdKeyDataintbyte[]byte[]byte[]getSalt()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
-
Constructor Details
-
PbkdKeyData
public PbkdKeyData(String keyAlgorithm, byte[] password, byte[] salt, int iterationCount, byte[] encoded)
-
-
Method Details
-
getInstance
-
getKeyAlgorithm
-
getPassword
public byte[] getPassword() -
getSalt
public byte[] getSalt() -
getIterationCount
public int getIterationCount() -
getKeyEncoding
public byte[] getKeyEncoding() -
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.
-