Class ADSSOAuthChallenge

    • Field Detail

      • ADDomain

        public static final Property<java.lang.String> ADDomain
      • ADDomainEnc

        public static final Property<java.lang.String> ADDomainEnc
    • Constructor Detail

      • ADSSOAuthChallenge

        public ADSSOAuthChallenge​(java.lang.String username,
                                  java.lang.String domain)
    • Method Detail

      • 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<java.lang.String,​java.lang.String> getSSOUsernameAndDomain()
                                                                                                                    throws java.lang.UnsupportedOperationException
        Utility method to grab the current active directory username and domain name. Will fail on anything but Windows, of course.
        Throws:
        java.lang.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