org.wamblee.security.authentication
Class JaasUserAccessor

java.lang.Object
  extended by org.wamblee.security.authentication.JaasUserAccessor
All Implemented Interfaces:
UserAccessor

public class JaasUserAccessor
extends java.lang.Object
implements UserAccessor

Implementation of the user accessor that retrieves user information from JAAS.

Author:
Erik Brakkee

Constructor Summary
JaasUserAccessor(java.lang.String aUserClassName)
          Constructs user accessor.
 
Method Summary
 java.lang.String getCurrentUser()
          Gets the current user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasUserAccessor

public JaasUserAccessor(java.lang.String aUserClassName)
Constructs user accessor.

Parameters:
aAdmin - User administration.
aUserClassName - Class name of the user principal.
Method Detail

getCurrentUser

public java.lang.String getCurrentUser()
Description copied from interface: UserAccessor
Gets the current user.

Specified by:
getCurrentUser in interface UserAccessor
Returns:
Currently logged in user or null if no user is found.


Copyright © 2022. All Rights Reserved.