Interface DigestCredential

    • Method Detail

      • verifyHA1

        boolean verifyHA1​(byte[] ha1)
        Called by the IdentityManager implementation to pass in the hex encoded a1 representation for validation against the current request. The Credential is self validating based on the information passed in here, if verification is successful then the IdentityManager can return the appropriate Account representation.
        Parameters:
        ha1 - - The hex encoded a1 value.
        Returns:
        true if verification was successful, false otherwise.
      • getRealm

        java.lang.String getRealm()
        Get the realm name the credential is being validated against.
        Returns:
        The realm name.
      • getSessionData

        byte[] getSessionData()
        If the algorithm is session based return the session data to be included when generating the ha1.
        Returns:
        The session data.
        Throws:
        java.lang.IllegalStateException - where the algorithm is not session based.