Class PasswordPrincipal
- java.lang.Object
-
- net.shibboleth.idp.authn.principal.PasswordPrincipal
-
- All Implemented Interfaces:
Cloneable
,Principal
,CloneablePrincipal
public class PasswordPrincipal extends Object implements CloneablePrincipal
Principal that wraps a password.
-
-
Constructor Summary
Constructors Constructor Description PasswordPrincipal(String pw)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordPrincipal
clone()
Creates and returns a copy of this object.boolean
equals(Object other)
String
getName()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
PasswordPrincipal
public PasswordPrincipal(@Nonnull @NotEmpty @ParameterName(name="pw") String pw)
Constructor.- Parameters:
pw
- the password
-
-
Method Detail
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
toString
public String toString()
-
clone
public PasswordPrincipal clone() throws CloneNotSupportedException
Creates and returns a copy of this object.- Specified by:
clone
in interfaceCloneablePrincipal
- Overrides:
clone
in classObject
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
- if the instance cannot be cloned.- See Also:
Object.clone()
-
-