Interface ClearPassword
- 
- All Superinterfaces:
- Cloneable,- Destroyable,- Key,- Password,- Serializable,- TwoWayPassword
 
 public interface ClearPassword extends TwoWayPassword A simple clear-text password.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringALGORITHM_CLEARThe algorithm name.- 
Fields inherited from interface java.security.KeyserialVersionUID
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ClearPasswordclone()Creates and returns a copy of thisPassword.static ClearPasswordcreateRaw(String algorithm, char[] password)Create a raw implementation of this password type.char[]getPassword()Get the password characters.- 
Methods inherited from interface javax.security.auth.Destroyabledestroy, isDestroyed
 - 
Methods inherited from interface java.security.KeygetAlgorithm, getEncoded, getFormat
 - 
Methods inherited from interface org.wildfly.security.password.PasswordcastAndApply, castAndApply, castAs, castAs, getParameterSpec, impliesParameters
 
- 
 
- 
- 
- 
Field Detail- 
ALGORITHM_CLEARstatic final String ALGORITHM_CLEAR The algorithm name.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getPasswordchar[] getPassword() throws IllegalStateExceptionGet the password characters.- Returns:
- the password characters
- Throws:
- IllegalStateException
 
 - 
cloneClearPassword clone() Creates and returns a copy of thisPassword.- Specified by:
- clonein interface- Password
- Specified by:
- clonein interface- TwoWayPassword
- Returns:
- a copy of this Password.
 
 - 
createRawstatic ClearPassword createRaw(String algorithm, char[] password) Create a raw implementation of this password type. No validation of the content is performed, and the password must be "adopted" in to aPasswordFactory(via thePasswordFactory.translate(Password)method) before it can be validated and used to verify guesses.- Parameters:
- algorithm- the algorithm name
- password- the password characters
- Returns:
- the raw password implementation
 
 
- 
 
-