Class BasicAuthChallenge

    • Field Detail

      • UsernameEnc

        public static final Property<java.lang.String> UsernameEnc
      • PasswordEnc

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

      • BasicAuthChallenge

        public BasicAuthChallenge​(java.lang.String username,
                                  java.lang.String password)
      • BasicAuthChallenge

        protected BasicAuthChallenge()
        Used from the parser - not public
    • Method Detail

      • getActor

        public java.lang.String getActor()
        Description copied from class: AuthChallenge
        Return a string representation of the "actor" this auth challenge represents (e.g. a username)
        Specified by:
        getActor in class AuthChallenge
      • 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.
        Specified by:
        encrypt in class AuthChallenge
      • 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
        Specified by:
        decrypt in class AuthChallenge
      • encrypt

        protected void encrypt​(Property<java.lang.String> plain,
                               Property<java.lang.String> cipher)
        Encrypts the value of plain storing it in cipher
      • decrypt

        protected void decrypt​(Property<java.lang.String> plain,
                               Property<java.lang.String> cipher)