Class SolarisRealm

  • All Implemented Interfaces:
    Comparable<Realm>

    @Service
    public final class SolarisRealm
    extends BaseRealm
    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
    • 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

      • SolarisRealm

        public SolarisRealm()
    • Method Detail

      • init

        protected 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 AbstractStatefulRealm
        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 AbstractRealm
        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.
        Returns:
        String[] group names