org.objectweb.jonas.security
Class AbsSecurityContextHelper
java.lang.Object
org.objectweb.jonas.security.AbsSecurityContextHelper
- Direct Known Subclasses:
- SecurityContextHelper, SecurityContextHelper
public abstract class AbsSecurityContextHelper
- extends java.lang.Object
This class allows to authenticate users.
It's a singleton to allow inherence and "static" methods.
- Author:
- Florent Benoit : Initial Developper, Helene Joanin : Refactoring
Method Summary |
protected abstract org.objectweb.util.monolog.api.Logger |
getLogger()
|
protected abstract java.lang.String |
getRealmDefault()
|
protected abstract java.lang.String |
getRealmKey()
|
void |
login(java.lang.String principalName,
java.lang.String credential)
Login with given principal and given credential |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbsSecurityContextHelper
public AbsSecurityContextHelper()
getLogger
protected abstract org.objectweb.util.monolog.api.Logger getLogger()
- Returns:
- return the associated logger
getRealmKey
protected abstract java.lang.String getRealmKey()
- Returns:
- return the Realm Key
getRealmDefault
protected abstract java.lang.String getRealmDefault()
- Returns:
- return the default realm value
login
public void login(java.lang.String principalName,
java.lang.String credential)
- Login with given principal and given credential
- Parameters:
principalName
- the logincredential
- the password