@Service public final class PamRealm extends AppservRealm
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_TYPE
Descriptive string of the authentication type of this realm.
|
_logger, JAAS_CONTEXT_PARAM, RI_DEFAULTgroupMapper, GROUPS_SEP, PARAM_DEFAULT_DIGEST_ALGORITHM, PARAM_GROUP_MAPPING, PARAM_GROUPS| Constructor and Description |
|---|
PamRealm() |
| Modifier and Type | Method and Description |
|---|---|
org.jvnet.libpam.UnixUser |
authenticate(String username,
char[] password) |
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 retrieves the PAM service stack to be used by the Realm class and Login Module
uniformly
|
protected void |
init(Properties props)
Initialize a realm with some properties.
|
addUser, addUser, getGroupNames, getUser, getUserNames, persist, refresh, removeUser, supportsUserManagement, updateUser, updateUsergetDefaultInstance, getDefaultRealm, getInstance, getInstance, getRealmNames, getRealmStatsProvier, instantiate, instantiate, isValidRealm, isValidRealm, setDefaultRealm, unloadInstance, unloadInstance, updateInstance, updateInstanceaddAssignGroups, compareTo, getDefaultDigestAlgorithm, getJAASContext, getMappedGroupNames, getName, getProperties, getProperty, refresh, setName, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTopublic static final String AUTH_TYPE
protected void init(Properties props) throws BadRealmException, NoSuchRealmException
AbstractStatefulRealminit in class AbstractStatefulRealmprops - initialization parameters used by this realm.BadRealmException - if the configuration parameters identify a corrupt realmNoSuchRealmException - if the configuration parameters specify a realm which doesn't
existpublic String getAuthType()
AbstractRealmgetAuthType in class AbstractRealmpublic Enumeration<String> getGroupNames(String username) throws NoSuchUserException
AbstractRealmgetGroupNames in class AbstractRealmusername - name of the user in this realm whose group listing is needed.NoSuchUserExceptionpublic org.jvnet.libpam.UnixUser authenticate(String username, char[] password)
public String getPamService()
Copyright © 2021. All rights reserved.