Class SolarisRealm

  • All Implemented Interfaces:
    Comparable

    @Service
    public final class SolarisRealm
    extends IASRealm
    Realm wrapper for supporting Solaris authentication.

    The Solaris realm needs the following properties in its configuration:

    • jaas-ctx - JAAS context name used to access LoginModule for authentication.
    See Also:
    SolarisLoginModule
    • Constructor Detail

      • SolarisRealm

        public SolarisRealm()
    • Method Detail

      • init

        public void init​(Properties props)
                  throws BadRealmException,
                         NoSuchRealmException
        Initialize a realm with some properties. This can be used when instantiating realms from their descriptions. This method may only be called a single time.
        Overrides:
        init in class Realm
        Parameters:
        props - Initialization parameters used by this realm.
        Throws:
        BadRealmException - If the configuration parameters identify a corrupt realm.
        NoSuchRealmException - If the configuration parameters specify a realm which doesn't exist.
      • getAuthType

        public String getAuthType()
        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 Realm
        Returns:
        Description of the kind of authentication that is directly supported by this realm.
      • authenticate

        public String[] authenticate​(String username,
                                     char[] password)
        Invoke the native authentication call.
        Parameters:
        username - User to authenticate.
        password - Given password.