Class DigestPasswordLoginModule

  • All Implemented Interfaces:
    LoginModule

    public class DigestPasswordLoginModule
    extends AbstractKarafLoginModule
    JAAS Login module for user / password, based on two properties files.
    • Constructor Detail

      • DigestPasswordLoginModule

        public DigestPasswordLoginModule()
    • Method Detail

      • doPasswordDigest

        public String doPasswordDigest​(String nonce,
                                       String created,
                                       byte[] password)
      • generateDigest

        public byte[] generateDigest​(byte[] inputBytes)
        Generate a (SHA1) digest of the input bytes. The MessageDigest instance that backs this method is cached for efficiency.
        Parameters:
        inputBytes - the bytes to digest
        Returns:
        the digest of the input bytes