Interface DigestHashedCredentialRetriever

  • All Known Implementing Classes:
    DefaultDigestHashedCredentialRetriever
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface DigestHashedCredentialRetriever
    Since:
    5.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String findCredential​(java.lang.String uid, java.lang.String realm)
      Find the MD5 hashed secret for a given user and realm.
    • Method Detail

      • findCredential

        java.lang.String findCredential​(java.lang.String uid,
                                        java.lang.String realm)
                                 throws javax.security.auth.login.AccountNotFoundException
        Find the MD5 hashed secret for a given user and realm.
        Parameters:
        uid - the uid
        realm - the realm
        Returns:
        the secret
        Throws:
        javax.security.auth.login.AccountNotFoundException - if the account is not found