Class AbstractPasswordImpl
- java.lang.Object
-
- org.wildfly.security.password.impl.AbstractPasswordImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Key
,Password
- Direct Known Subclasses:
BCryptPasswordImpl
,BSDUnixDESCryptPasswordImpl
,ClearPasswordImpl
,DigestPasswordImpl
,MaskedPasswordImpl
,OneTimePasswordImpl
,SaltedSimpleDigestPasswordImpl
,ScramDigestPasswordImpl
,SimpleDigestPasswordImpl
,SunUnixMD5CryptPasswordImpl
,UnixDESCryptPasswordImpl
,UnixMD5CryptPasswordImpl
,UnixSHACryptPasswordImpl
abstract class AbstractPasswordImpl extends Object implements Password
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description AbstractPasswordImpl()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractPasswordImpl
clone()
Creates and returns a copy of thisPassword
.(package private) abstract <T extends KeySpec>
booleanconvertibleTo(Class<T> keySpecType)
abstract boolean
equals(Object obj)
byte[]
getEncoded()
String
getFormat()
(package private) abstract <S extends KeySpec>
SgetKeySpec(Class<S> keySpecType)
(package private) static byte[]
getNormalizedPasswordBytes(char[] characters)
(package private) static byte[]
getNormalizedPasswordBytes(char[] characters, Charset charset)
abstract int
hashCode()
(package private) Password
translate(AlgorithmParameterSpec parameterSpec)
(package private) abstract boolean
verify(char[] guess)
(package private) boolean
verify(char[] guess, Charset hashCharset)
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.security.Key
getAlgorithm
-
Methods inherited from interface org.wildfly.security.password.Password
castAndApply, castAndApply, castAs, castAs, getParameterSpec, impliesParameters
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKeySpec
abstract <S extends KeySpec> S getKeySpec(Class<S> keySpecType) throws InvalidKeySpecException
- Throws:
InvalidKeySpecException
-
verify
abstract boolean verify(char[] guess) throws InvalidKeyException
- Throws:
InvalidKeyException
-
verify
boolean verify(char[] guess, Charset hashCharset) throws InvalidKeyException
- Throws:
InvalidKeyException
-
clone
public abstract AbstractPasswordImpl clone()
Description copied from interface:Password
Creates and returns a copy of thisPassword
.
-
translate
Password translate(AlgorithmParameterSpec parameterSpec) throws InvalidKeyException, InvalidAlgorithmParameterException
-
getNormalizedPasswordBytes
static byte[] getNormalizedPasswordBytes(char[] characters)
-
getNormalizedPasswordBytes
static byte[] getNormalizedPasswordBytes(char[] characters, Charset charset)
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
-