public interface MaskedPassword extends TwoWayPassword
serialVersionUID
Modifier and Type | Method and Description |
---|---|
MaskedPassword |
clone()
Creates and returns a copy of this
Password . |
static MaskedPassword |
createRaw(String algorithm,
char[] initialKeyMaterial,
int iterationCount,
byte[] salt,
byte[] maskedPasswordBytes)
Create a raw instance of this password type.
|
char[] |
getInitialKeyMaterial()
Get the initial key material.
|
int |
getIterationCount()
Get the iteration count.
|
byte[] |
getMaskedPasswordBytes()
Get the masked password bytes.
|
default MaskedPasswordAlgorithmSpec |
getParameterSpec()
Get the applicable algorithm parameter specification for this password type.
|
static String |
getPBEName(String name)
Get the name of the PBE algorithm that goes with the given password algorithm name.
|
byte[] |
getSalt()
Get the salt bytes.
|
default boolean |
impliesParameters(AlgorithmParameterSpec parameterSpec)
Determine if this password is matched by the given parameter specification.
|
static boolean |
isMaskedAlgorithm(String name)
Determine if the given algorithm name is a valid masked password algorithm name.
|
castAndApply, castAndApply, castAs, castAs
getAlgorithm, getEncoded, getFormat
destroy, isDestroyed
static final String ALGORITHM_MASKED_MD5_DES
static final String ALGORITHM_MASKED_MD5_DES_CBC_PKCS5
static final String ALGORITHM_MASKED_MD5_3DES
static final String ALGORITHM_MASKED_MD5_3DES_CBC_PKCS5
static final String ALGORITHM_MASKED_SHA1_DES_EDE
static final String ALGORITHM_MASKED_SHA1_DES_EDE_CBC_PKCS5
static final String ALGORITHM_MASKED_SHA1_RC2_40
static final String ALGORITHM_MASKED_SHA1_RC2_40_CBC_PKCS5
static final String ALGORITHM_MASKED_SHA1_RC2_128
static final String ALGORITHM_MASKED_SHA1_RC2_128_CBC_PKCS5
static final String ALGORITHM_MASKED_SHA1_RC4_40
static final String ALGORITHM_MASKED_SHA1_RC4_40_ECB
static final String ALGORITHM_MASKED_SHA1_RC4_128
static final String ALGORITHM_MASKED_SHA1_RC4_128_ECB
static final String ALGORITHM_MASKED_HMAC_SHA1_AES_128
static final String ALGORITHM_MASKED_HMAC_SHA224_AES_128
static final String ALGORITHM_MASKED_HMAC_SHA256_AES_128
static final String ALGORITHM_MASKED_HMAC_SHA384_AES_128
static final String ALGORITHM_MASKED_HMAC_SHA512_AES_128
static final String ALGORITHM_MASKED_HMAC_SHA1_AES_256
static final String ALGORITHM_MASKED_HMAC_SHA224_AES_256
static final String ALGORITHM_MASKED_HMAC_SHA256_AES_256
static final String ALGORITHM_MASKED_HMAC_SHA384_AES_256
static final String ALGORITHM_MASKED_HMAC_SHA512_AES_256
static final String ALGORITHM_MASKED_PBKDF_HMAC_SHA1
static final String ALGORITHM_MASKED_PBKDF_HMAC_SHA224
static final String ALGORITHM_MASKED_PBKDF_HMAC_SHA256
static final String ALGORITHM_MASKED_PBKDF_HMAC_SHA384
static final String ALGORITHM_MASKED_PBKDF_HMAC_SHA512
static boolean isMaskedAlgorithm(String name)
name
- the algorithm nametrue
if the algorithm name is valid for this password type, false
otherwisestatic String getPBEName(String name)
name
- the password algorithm namenull
if the password algorithm name was null
or not recognizedchar[] getInitialKeyMaterial()
null
)int getIterationCount()
byte[] getSalt()
null
)byte[] getMaskedPasswordBytes()
null
)default MaskedPasswordAlgorithmSpec getParameterSpec()
Password
getParameterSpec
in interface Password
null
if this password type does not support algorithmsdefault boolean impliesParameters(AlgorithmParameterSpec parameterSpec)
Password
impliesParameters
in interface Password
parameterSpec
- the parameter specification (must not be null
)true
if the password is matched by the parameters, false
otherwiseMaskedPassword clone()
TwoWayPassword
Password
.clone
in interface Password
clone
in interface TwoWayPassword
Password
.static MaskedPassword createRaw(String algorithm, char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] maskedPasswordBytes)
algorithm
- the algorithm name (must not be null
)initialKeyMaterial
- the initial key material (must not be null
)iterationCount
- the iteration countsalt
- the salt (must not be null
)maskedPasswordBytes
- the masked password bytes (must not be null
)null
)Copyright © 2017 JBoss by Red Hat. All rights reserved.