@Service public final class PamRealm extends AppservRealm
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TYPE |
JAAS_CONTEXT_PARAM, sm
_logger, RI_DEFAULT
groupMapper, PARAM_GROUP_MAPPING
Constructor and Description |
---|
PamRealm() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthType()
Returns a short (preferably less than fifteen characters) description of the kind of
authentication which is supported by this realm.
|
Enumeration<String> |
getGroupNames(String username)
Returns the name of all the groups that this user belongs to
|
String |
getPamService()
This method retreives the PAM service stack to be used by the Realm class and Login Module
uniformly
|
void |
init(Properties props)
Initialize a realm with some properties.
|
addUser, addUser, getGroupNames, getUser, getUserNames, persist, refresh, removeUser, supportsUserManagement, updateUser, updateUser
getDefaultInstance, getDefaultRealm, getInstance, getInstance, getRealmNames, getRealmStatsProvier, instantiate, instantiate, isValidRealm, isValidRealm, setDefaultRealm, unloadInstance, unloadInstance, updateInstance, updateInstance
addAssignGroups, compareTo, getDefaultDigestAlgorithm, getJAASContext, getMappedGroupNames, getName, getProperties, getProperty, refresh, setName, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
public static final String AUTH_TYPE
public void init(Properties props) throws BadRealmException, NoSuchRealmException
init
in class AbstractStatefulRealm
props
- 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()
AbstractRealm
getAuthType
in class AbstractRealm
public Enumeration<String> getGroupNames(String username) throws NoSuchUserException
AbstractRealm
getGroupNames
in class AbstractRealm
username
- name of the user in this realm whose group listing is needed.NoSuchUserException
public String getPamService()
Copyright © 2019. All rights reserved.