Class PasswordFile


  • public class PasswordFile
    extends java.lang.Object
    Contents of the password file.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      PasswordFile​(java.lang.String algorithm)
      Initiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEntry​(java.lang.String userId, byte[] credentials, java.util.Set<java.lang.String> roles)
      Adds a PasswordEntry to this PasswordFile.
      java.lang.String getAlgorithm()
      Obtains the algorithm encrypting the credentials.
      PasswordEntry getEntry​(java.lang.String userId)
      Obtains the PasswordEntry for the user Id.
      • Methods inherited from class java.lang.Object

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

      • PasswordFile

        public PasswordFile​(java.lang.String algorithm)
        Initiate.
        Parameters:
        algorithm - Algorithm encrypting the password entry credentials.
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Obtains the algorithm encrypting the credentials.
        Returns:
        Algorithm encrypting the credentials.
      • addEntry

        public void addEntry​(java.lang.String userId,
                             byte[] credentials,
                             java.util.Set<java.lang.String> roles)
        Adds a PasswordEntry to this PasswordFile.
        Parameters:
        userId - User Id.
        credentials - Credentials of user.
        roles - Roles.