public class BasicAuthChallenge extends AuthChallenge
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicAuthChallenge.Parser |
AuthChallenge.AuthChallengeParserBasicPropertySet.Builder| Modifier and Type | Field and Description |
|---|---|
static Property<java.lang.String> |
PasswordEnc |
static Property<java.lang.String> |
UsernameEnc |
EMPTY| Modifier | Constructor and Description |
|---|---|
protected |
BasicAuthChallenge()
Used from the parser - not public
|
|
BasicAuthChallenge(java.lang.String username,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsUsernameAndPassword()
Convenience method to see if this is a standard login attempt
|
void |
decrypt()
Called after transport, before authentication.
|
protected void |
decrypt(Property<java.lang.String> plain,
Property<java.lang.String> cipher) |
void |
encrypt()
Prepare this auth challenge for transport.
|
protected void |
encrypt(Property<java.lang.String> plain,
Property<java.lang.String> cipher)
Encrypts the value of plain storing it in cipher
|
java.lang.String |
getActor()
Return a string representation of the "actor" this auth challenge represents (e.g.
|
java.lang.String |
toString() |
fromJSON, register, set, set, toJSON, unregisteraddPropertyChangeListener, addPropertyChangeListener, change, coerceValue, contains, equals, firePropertyChange, get, getCount, getExtension, getOrDefault, getOrElse, getProperties, getRaw, getRawValueMap, getValues, isExtended, isInherited, iterator, of, remove, removePropertyChangeListener, removePropertyChangeListener, setDirect, setImpl, setRawValueMapclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuilder, extend, newDefaultInstance, newExtensionmergepublic static final Property<java.lang.String> UsernameEnc
public static final Property<java.lang.String> PasswordEnc
public BasicAuthChallenge(java.lang.String username,
java.lang.String password)
protected BasicAuthChallenge()
public java.lang.String getActor()
AuthChallengegetActor in class AuthChallengepublic boolean containsUsernameAndPassword()
AuthChallengecontainsUsernameAndPassword in class AuthChallengepublic java.lang.String toString()
toString in class BasicPropertySetpublic void encrypt()
AuthChallengeencrypt in class AuthChallengepublic void decrypt()
AuthChallengedecrypt in class AuthChallengeprotected void encrypt(Property<java.lang.String> plain, Property<java.lang.String> cipher)