Class AuthChallenge

    • Constructor Detail

      • AuthChallenge

        public AuthChallenge()
    • Method Detail

      • fromJSON

        public static AuthChallenge fromJSON​(java.lang.String jsonString)
                                      throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • containsUsernameAndPassword

        public abstract boolean containsUsernameAndPassword()
        Convenience method to see if this is a standard login attempt
      • getActor

        public abstract java.lang.String getActor()
        Return a string representation of the "actor" this auth challenge represents (e.g. a username)
      • encrypt

        public abstract void encrypt()
        Prepare this auth challenge for transport. After this is called, there should not be any sensitive plaintext information in the property set.
      • decrypt

        public abstract void decrypt()
        Called after transport, before authentication. After this is called, sensitive information may appear in plaintext in this object
      • toJSON

        public java.lang.String toJSON()