org.objectweb.jonas.security
Class AbsSecurityContextHelper
java.lang.Object
org.objectweb.jonas.security.AbsSecurityContextHelper
- Direct Known Subclasses:
- SecurityContextHelper, SecurityContextHelper
public abstract class AbsSecurityContextHelper
- extends 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
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 String getRealmKey()
- Returns:
- return the Realm Key
getRealmDefault
protected abstract String getRealmDefault()
- Returns:
- return the default realm value
login
public void login(String principalName,
String credential)
- Login with given principal and given credential
- Parameters:
principalName
- the logincredential
- the password
Copyright © 2007 OW2 Consortium. All Rights Reserved.