Class BasicAuthChallenge

All Implemented Interfaces:
Countable, Extendable<PropertySet>, Mergable<PropertySet>, MutablePropertyValueSource, ObservablePropertySet, PropertySet, PropertyValueSource, Serializable, Iterable<PropertyValue>
Direct Known Subclasses:
ADSSOAuthChallenge, BadgeAuthChallenge

public class BasicAuthChallenge extends AuthChallenge
See Also:
  • Field Details

  • Constructor Details

    • BasicAuthChallenge

      public BasicAuthChallenge(String username, String password)
    • BasicAuthChallenge

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

    • getActor

      public 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
    • containsUsernameAndPassword

      public boolean containsUsernameAndPassword()
      Description copied from class: AuthChallenge
      Convenience method to see if this is a standard login attempt
      Specified by:
      containsUsernameAndPassword in class AuthChallenge
    • toString

      public String toString()
      Overrides:
      toString in class BasicPropertySet
    • 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<String> plain, Property<String> cipher)
      Encrypts the value of plain storing it in cipher
    • decrypt

      protected void decrypt(Property<String> plain, Property<String> cipher)