public final class AuthPassword extends java.lang.Object implements Password
The authInfo (often a base 64 encoded salt) and authValue (often a base 64 encoded value derived from a user's password(s)) must contain only characters from ASCII intervals [0x21-0x23] and [0x25-0x7E].
The authPasswordSyntax also defines that the scheme name must contain only characters from 0-9, A-Z, '-', '.', '/' or '_'.
| Constructor and Description |
|---|
AuthPassword(ByteString authInfo,
ByteString authValue)
Creates a new instance of this class ensuring that the provided authInfo
and authValue both contain characters within ASCII intervals [0x21-0x23]
and [0x25-0x7E].
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
ByteString |
getAuthInfo()
Returns the authInfo that is often a base 64 encoded salt.
|
ByteString |
getAuthValue()
Returns the authValue that is often a base 64 encoded value derived from
a user's password(s).
|
int |
hashCode() |
public AuthPassword(ByteString authInfo, ByteString authValue) throws java.lang.NullPointerException, PasswordStorageSchemeException
authInfo - the value of the authInfo field (can not be null).authValue - the value of the authValue field (can not be
null).PasswordStorageSchemeException - if the provided values contain
unexpected character(s).java.lang.NullPointerException - if at least one of the provided values is
null.public ByteString getAuthInfo()
public ByteString getAuthValue()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object