Class PamRealm

  • All Implemented Interfaces:
    Comparable<Realm>

    @Service
    public final class PamRealm
    extends AppservRealm
    Realm wrapper for supporting PAM based authentication for all Unix machines. The PAM realm uses the Operating System's PAM login mechanism to authenticate the applications with their OS usernames and passwords.
    Author:
    Nithya Subramanian
    • Field Detail

      • AUTH_TYPE

        public static final String AUTH_TYPE
        Descriptive string of the authentication type of this realm.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PamRealm

        public PamRealm()
    • Method Detail

      • getAuthType

        public String getAuthType()
        Description copied from class: AbstractRealm
        Returns a short (preferably less than fifteen characters) description of the kind of authentication which is supported by this realm.
        Specified by:
        getAuthType in class AbstractRealm
        Returns:
        "pam".
      • authenticate

        public org.jvnet.libpam.UnixUser authenticate​(String username,
                                                      char[] password)
      • getPamService

        public String getPamService()
        This method retrieves the PAM service stack to be used by the Realm class and Login Module uniformly
        Returns:
        "sshd"