public abstract class CMSPBEKey
extends java.lang.Object
implements javax.crypto.interfaces.PBEKey
Constructor and Description |
---|
CMSPBEKey(char[] password,
byte[] salt,
int iterationCount) |
CMSPBEKey(char[] password,
javax.crypto.spec.PBEParameterSpec pbeSpec) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
int |
getIterationCount() |
protected static javax.crypto.spec.PBEParameterSpec |
getParamSpec(java.security.AlgorithmParameters algParams) |
char[] |
getPassword() |
byte[] |
getSalt() |
public CMSPBEKey(char[] password, byte[] salt, int iterationCount)
public CMSPBEKey(char[] password, javax.crypto.spec.PBEParameterSpec pbeSpec)
protected static javax.crypto.spec.PBEParameterSpec getParamSpec(java.security.AlgorithmParameters algParams) throws java.security.InvalidAlgorithmParameterException
java.security.InvalidAlgorithmParameterException
public char[] getPassword()
getPassword
in interface javax.crypto.interfaces.PBEKey
public byte[] getSalt()
getSalt
in interface javax.crypto.interfaces.PBEKey
public int getIterationCount()
getIterationCount
in interface javax.crypto.interfaces.PBEKey
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key