Class RawClearPassword
- java.lang.Object
 - 
- org.wildfly.security.password.interfaces.RawPassword
 - 
- org.wildfly.security.password.interfaces.RawClearPassword
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,Key,Destroyable,ClearPassword,Password,TwoWayPassword
class RawClearPassword extends RawPassword implements ClearPassword
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private char[]passwordprivate static longserialVersionUID- 
Fields inherited from interface org.wildfly.security.password.interfaces.ClearPassword
ALGORITHM_CLEAR 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RawClearPassword(String algorithm, char[] password) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawClearPasswordclone()Creates and returns a copy of thisPassword.voiddestroy()Destroy thisObject.booleanequals(Object obj)char[]getPassword()Get the password characters.inthashCode()booleanisDestroyed()Determine if thisObjecthas been destroyed.- 
Methods inherited from class org.wildfly.security.password.interfaces.RawPassword
getAlgorithm, getEncoded, getFormat 
- 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat 
- 
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
 
 
- 
password
private final char[] password
 
 - 
 
- 
Constructor Detail
- 
RawClearPassword
RawClearPassword(String algorithm, char[] password)
 
 - 
 
- 
Method Detail
- 
getPassword
public char[] getPassword() throws IllegalStateExceptionDescription copied from interface:ClearPasswordGet the password characters.- Specified by:
 getPasswordin interfaceClearPassword- Returns:
 - the password characters
 - Throws:
 IllegalStateException
 
- 
destroy
public void destroy() throws DestroyFailedExceptionDestroy thisObject.Sensitive information associated with this
Objectis destroyed or cleared. Subsequent calls to certain methods on thisObjectwill result in anIllegalStateExceptionbeing thrown.The default implementation throws
DestroyFailedException.- Specified by:
 destroyin interfaceDestroyable- Throws:
 DestroyFailedException- if the destroy operation fails.SecurityException- if the caller does not have permission to destroy thisObject.
 
- 
isDestroyed
public boolean isDestroyed()
Determine if thisObjecthas been destroyed.The default implementation returns false.
- Specified by:
 isDestroyedin interfaceDestroyable- Returns:
 - true if this 
Objecthas been destroyed, false otherwise. 
 
- 
clone
public RawClearPassword clone()
Description copied from interface:PasswordCreates and returns a copy of thisPassword.- Specified by:
 clonein interfaceClearPassword- Specified by:
 clonein interfacePassword- Specified by:
 clonein interfaceTwoWayPassword- Specified by:
 clonein classRawPassword- Returns:
 - a copy of this 
Password. 
 
- 
hashCode
public int hashCode()
- Specified by:
 hashCodein classRawPassword
 
- 
equals
public boolean equals(Object obj)
- Specified by:
 equalsin classRawPassword
 
 - 
 
 -