Class CredentialStoreUtil


  • public class CredentialStoreUtil
    extends java.lang.Object
    Utility functions for working with a CredentialStore.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HttpAccessControl authenticate​(java.lang.String userId, java.lang.String realm, byte[] credentials, java.lang.String scheme, CredentialStore store)
      Convenience method to authenticate the user from the CredentialStore.
      static java.security.MessageDigest createDigest​(java.lang.String algorithm)
      Creates the MessageDigest for the CredentialStore algorithm.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createDigest

        public static java.security.MessageDigest createDigest​(java.lang.String algorithm)
                                                        throws HttpException
        Creates the MessageDigest for the CredentialStore algorithm.
        Parameters:
        algorithm - CredentialStore algorithm.
        Returns:
        MessageDigest for the algorithm or null indicate credentials are in plain text.
        Throws:
        HttpException - If fails to obtain MessageDigest for the algorithm.