@Service public final class SolarisRealm extends IASRealm
The Solaris realm needs the following properties in its configuration:
SolarisLoginModule| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_TYPE |
static String |
OS_ARCH |
static String |
SOL_SPARC_OS_ARCH |
static String |
SOL_X86_OS_ARCH |
JAAS_CONTEXT_PARAM, sm_logger, groupMapper, PARAM_GROUP_MAPPING| Constructor and Description |
|---|
SolarisRealm() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
authenticate(String username,
char[] password)
Invoke the native authentication call.
|
String |
getAuthType()
Returns a short (preferably less than fifteen characters) description
of the kind of authentication which is supported by this realm.
|
Enumeration |
getGroupNames(String username)
Returns the name of all the groups that this user belongs to.
|
void |
init(Properties props)
Initialize a realm with some properties.
|
addUser, addUser, getAuthenticationHandler, getGroupNames, getUser, getUserNames, persist, refresh, removeUser, supportsUserManagement, updateUser, updateUseraddAssignGroups, compareTo, getDefaultDigestAlgorithm, getDefaultInstance, getDefaultRealm, getInstance, getInstance, getJAASContext, getMappedGroupNames, getName, getProperties, getProperty, getRealmNames, getRealmStatsProvier, instantiate, instantiate, instantiate, isValidRealm, isValidRealm, refresh, setDefaultRealm, setName, setProperty, toString, unloadInstance, unloadInstance, updateInstance, updateInstancepublic static final String AUTH_TYPE
public static final String OS_ARCH
public static final String SOL_SPARC_OS_ARCH
public static final String SOL_X86_OS_ARCH
public void init(Properties props) throws BadRealmException, NoSuchRealmException
init in class Realmprops - Initialization parameters used by this realm.BadRealmException - If the configuration parameters
identify a corrupt realm.NoSuchRealmException - If the configuration parameters
specify a realm which doesn't exist.public String getAuthType()
getAuthType in class Realmpublic Enumeration getGroupNames(String username) throws InvalidOperationException, NoSuchUserException
getGroupNames in class Realmusername - Name of the user in this realm whose group listing
is needed.InvalidOperationException - thrown if the realm does not
support this operation - e.g. Certificate realm does not support
this operation.NoSuchUserExceptionCopyright © 2017. All rights reserved.