Class ADSSOAuthChallenge

All Implemented Interfaces:
Countable, Extendable<PropertySet>, Mergable<PropertySet>, MutablePropertyValueSource, ObservablePropertySet, PropertySet, PropertyValueSource, Serializable, Iterable<PropertyValue>

public class ADSSOAuthChallenge extends BasicAuthChallenge
Auth challenge that contains a username and AD domain to attempt an SSO login
See Also:
  • Field Details

  • Constructor Details

    • ADSSOAuthChallenge

      public ADSSOAuthChallenge(String username, String domain)
  • Method Details

    • encrypt

      public void encrypt()
      Description copied from class: AuthChallenge
      Prepare this auth challenge for transport. After this is called, there should not be any sensitive plaintext information in the property set.
      Overrides:
      encrypt in class BasicAuthChallenge
    • decrypt

      public void decrypt()
      Description copied from class: AuthChallenge
      Called after transport, before authentication. After this is called, sensitive information may appear in plaintext in this object
      Overrides:
      decrypt in class BasicAuthChallenge
    • getSSOUsernameAndDomain

      public static org.apache.commons.lang3.tuple.Pair<String,String> getSSOUsernameAndDomain() throws UnsupportedOperationException
      Utility method to grab the current active directory username and domain name. Will fail on anything but Windows, of course.
      Throws:
      UnsupportedOperationException - 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 NTSystem