Class PasswordFactorySpiImpl
- java.lang.Object
-
- org.wildfly.security.password.PasswordFactorySpi
-
- org.wildfly.security.password.impl.PasswordFactorySpiImpl
-
public final class PasswordFactorySpiImpl extends PasswordFactorySpi
The Elytron-provided password factory SPI implementation, which supports all the provided password types.
-
-
Constructor Summary
Constructors Constructor Description PasswordFactorySpiImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <S extends KeySpec>
booleanengineConvertibleToKeySpec(String algorithm, Password password, Class<S> keySpecType)protected PasswordengineGeneratePassword(String algorithm, KeySpec keySpec)protected <S extends KeySpec>
SengineGetKeySpec(String algorithm, Password password, Class<S> keySpecType)protected booleanengineIsTranslatablePassword(String algorithm, Password password)protected PasswordengineTransform(String algorithm, Password password, AlgorithmParameterSpec parameterSpec)protected PasswordengineTranslatePassword(String algorithm, Password password)protected booleanengineVerify(String algorithm, Password password, char[] guess)protected booleanengineVerify(String algorithm, Password password, char[] guess, Charset hashCharset)
-
-
-
Method Detail
-
engineGeneratePassword
protected Password engineGeneratePassword(String algorithm, KeySpec keySpec) throws InvalidKeySpecException
- Specified by:
engineGeneratePasswordin classPasswordFactorySpi- Throws:
InvalidKeySpecException
-
engineGetKeySpec
protected <S extends KeySpec> S engineGetKeySpec(String algorithm, Password password, Class<S> keySpecType) throws InvalidKeySpecException
- Specified by:
engineGetKeySpecin classPasswordFactorySpi- Throws:
InvalidKeySpecException
-
engineIsTranslatablePassword
protected boolean engineIsTranslatablePassword(String algorithm, Password password)
- Specified by:
engineIsTranslatablePasswordin classPasswordFactorySpi
-
engineTranslatePassword
protected Password engineTranslatePassword(String algorithm, Password password) throws InvalidKeyException
- Specified by:
engineTranslatePasswordin classPasswordFactorySpi- Throws:
InvalidKeyException
-
engineVerify
protected boolean engineVerify(String algorithm, Password password, char[] guess) throws InvalidKeyException
- Specified by:
engineVerifyin classPasswordFactorySpi- Throws:
InvalidKeyException
-
engineVerify
protected boolean engineVerify(String algorithm, Password password, char[] guess, Charset hashCharset) throws InvalidKeyException
- Overrides:
engineVerifyin classPasswordFactorySpi- Throws:
InvalidKeyException
-
engineConvertibleToKeySpec
protected <S extends KeySpec> boolean engineConvertibleToKeySpec(String algorithm, Password password, Class<S> keySpecType)
- Specified by:
engineConvertibleToKeySpecin classPasswordFactorySpi
-
engineTransform
protected Password engineTransform(String algorithm, Password password, AlgorithmParameterSpec parameterSpec) throws InvalidKeyException, InvalidAlgorithmParameterException
- Specified by:
engineTransformin classPasswordFactorySpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
-