public class ADSSOAuthChallenge extends BasicAuthChallenge
| Modifier and Type | Class and Description |
|---|---|
static class |
ADSSOAuthChallenge.Parser |
AuthChallenge.AuthChallengeParserBasicPropertySet.Builder| Modifier and Type | Field and Description |
|---|---|
static Property<java.lang.String> |
ADDomain |
static Property<java.lang.String> |
ADDomainEnc |
PasswordEnc, UsernameEncEMPTY| Constructor and Description |
|---|
ADSSOAuthChallenge(java.lang.String username,
java.lang.String domain) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrypt()
Called after transport, before authentication.
|
void |
encrypt()
Prepare this auth challenge for transport.
|
static org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.String> |
getSSOUsernameAndDomain()
Utility method to grab the current active directory username and domain name.
|
containsUsernameAndPassword, decrypt, encrypt, getActor, toStringfromJSON, 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> ADDomain
public static final Property<java.lang.String> ADDomainEnc
public ADSSOAuthChallenge(java.lang.String username,
java.lang.String domain)
public void encrypt()
AuthChallengeencrypt in class BasicAuthChallengepublic void decrypt()
AuthChallengedecrypt in class BasicAuthChallengepublic static org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.String> getSSOUsernameAndDomain()
throws java.lang.Exception
java.lang.Exception - if it was not possible to get this information, including on any OS other than windows or
if running a Java implementation that does not have
com.sun.security.auth.module.NTSystem