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.InvalidAlgorithmParameterExceptionpublic char[] getPassword()
getPassword in interface javax.crypto.interfaces.PBEKeypublic byte[] getSalt()
getSalt in interface javax.crypto.interfaces.PBEKeypublic int getIterationCount()
getIterationCount in interface javax.crypto.interfaces.PBEKeypublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Key