| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| public static String | |
| public static String[] | |
| protected JAASUserPrincipal | |
| protected String | |
| protected String | |
| protected RoleCheckPolicy | |
| protected String[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Principal | Returns: authenticated JAASUserPrincipal or null if authenticated failedprovided by the user at login username, Object provided by the user at login credentials, Request a request)Request valueImplements org. |
| public void | disassociate(Principal
a UserPrincipal to disassociate user)Implements org. |
| public String | Returns: name or null if not set.Implements org. |
| public Principal | getPrincipal(String username)
Implements org. |
| public String[] | |
| public java. | |
| public boolean | isUserInRole(Principal user, String
A role name. role)Implements org. |
| public void | logout(Principal
an user)Principal valueImplements org. |
| public Principal | popRole(Principal
A UserPrincipal previously returned from pushRole user)Implements org. |
| public Principal | Returns: the Principal with the role addedthe Principal to which to add the role user, String the role name role)Implements org. |
| public boolean | reauthenticate(Principal user)
Implements org. |
| public void | |
| public void | setLoginModuleName(String
a name)String valueSet the name to use to index into the config file of LoginModules. |
| public void | |
| public void | |
| public void |
| callbackHandlerClass | back to summary |
|---|---|
| protected String callbackHandlerClass | |
| DEFAULT_ROLE_CLASS_NAME | back to summary |
|---|---|
| public static String DEFAULT_ROLE_CLASS_NAME | |
| DEFAULT_ROLE_CLASS_NAMES | back to summary |
|---|---|
| public static String[] DEFAULT_ROLE_CLASS_NAMES | |
| defaultUser | back to summary |
|---|---|
| protected JAASUserPrincipal defaultUser | |
| loginModuleName | back to summary |
|---|---|
| protected String loginModuleName | |
| realmName | back to summary |
|---|---|
| protected String realmName | |
| roleCheckPolicy | back to summary |
|---|---|
| protected RoleCheckPolicy roleCheckPolicy | |
| roleClassNames | back to summary |
|---|---|
| protected String[] roleClassNames | |
| JAASUserRealm | back to summary |
|---|---|
| public JAASUserRealm() Constructor. | |
| JAASUserRealm | back to summary |
|---|---|
| public JAASUserRealm(String name) Constructor.
| |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(String username, Object credentials, Request request) Implements org. Authenticate a user. | |
| disassociate | back to summary |
|---|---|
| public void disassociate(Principal user) Implements org. Removes any auth info associated with eg. the thread.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Get the name of the realm.
| |
| getPrincipal | back to summary |
|---|---|
| public Principal getPrincipal(String username) Implements org. Doc from org. Get the principal for a username. This method is not guaranteed to return a Principal for non-authenticated users. | |
| getRoleClassNames | back to summary |
|---|---|
| public String[] getRoleClassNames() | |
| getRoles | back to summary |
|---|---|
| public java. | |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(Principal user, String role) Implements org. Doc from org. Check if the user is in a role.
| |
| logout | back to summary |
|---|---|
| public void logout(Principal user) Implements org. Logout a previously logged in user. This can only work for FORM authentication as BasicAuthentication is stateless. The user's LoginContext logout() method is called.
| |
| popRole | back to summary |
|---|---|
| public Principal popRole(Principal user) Implements org. Doc from org. Pop role from a Principal. | |
| pushRole | back to summary |
|---|---|
| public Principal pushRole(Principal user, String role) Implements org. Temporarily adds a role to a user. Temporarily granting a role pushes the role onto a stack of temporary roles. Temporary roles must therefore be removed in order. | |
| reauthenticate | back to summary |
|---|---|
| public boolean reauthenticate(Principal user) Implements org. Doc from org. Re Authenticate a Principal. Authenicate a principal that has previously been return from the authenticate method. Implementations of this method may adorn the calling context to assoicate it with the authenticated principal (eg ThreadLocals). If such context associations are made, they should be considered valid until a UserRealm.deAuthenticate(UserPrincipal) call is made for this UserPrincipal.
| |
| setCallbackHandlerClass | back to summary |
|---|---|
| public void setCallbackHandlerClass(String classname) | |
| setLoginModuleName | back to summary |
|---|---|
| public void setLoginModuleName(String name) Set the name to use to index into the config file of LoginModules.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the name of the realm
| |
| setRoleCheckPolicy | back to summary |
|---|---|
| public void setRoleCheckPolicy(RoleCheckPolicy policy) | |
| setRoleClassNames | back to summary |
|---|---|
| public void setRoleClassNames(String[] classnames) | |