java.lang.Object
no.feide.moria.service.AuthenticationImpl
- All Implemented Interfaces:
- AuthenticationIF, java.rmi.Remote, javax.xml.rpc.server.ServiceLifecycle
- public class AuthenticationImpl
- extends java.lang.Object
- implements AuthenticationIF, javax.xml.rpc.server.ServiceLifecycle
|
Method Summary |
private static void |
assertPrincipals(java.security.Principal pCurrent,
java.security.Principal pStored)
Utility method, used to check if a given client service principal
matches the principal stored in the session. |
void |
destroy()
Service endpoint destructor. |
java.util.HashMap |
getAttributes(java.lang.String id)
|
void |
init(java.lang.Object context)
Service endpoint initialization. |
java.lang.String |
requestSession(java.lang.String[] attributes,
java.lang.String prefix,
java.lang.String postfix)
A simple wrapper for
requestSession(String[], String, String, true). |
java.lang.String |
requestSession(java.lang.String[] attributes,
java.lang.String prefix,
java.lang.String postfix,
boolean denySSO)
Request a new Moria session, with the option to turn off SSO even though
the web service authorization config would allow it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static java.util.logging.Logger log
- Used for logging.
ctx
private javax.xml.rpc.server.ServletEndpointContext ctx
- Used to retrieve the client identity.
sessionStore
private no.feide.moria.SessionStore sessionStore
- Session store.
authTimer
private java.util.Timer authTimer
- Timer for updating the web service authorization module.
AuthenticationImpl
public AuthenticationImpl()
destroy
public void destroy()
- Service endpoint destructor. Some basic housekeeping.
- Specified by:
destroy in interface javax.xml.rpc.server.ServiceLifecycle
init
public void init(java.lang.Object context)
throws javax.xml.rpc.ServiceException
- Service endpoint initialization. Will read the
Properties
file found in the location given by the system property
no.feide.moria.config.file. If the property is not
set, the default filename is /moria.properties.
- Specified by:
init in interface javax.xml.rpc.server.ServiceLifecycle
requestSession
public java.lang.String requestSession(java.lang.String[] attributes,
java.lang.String prefix,
java.lang.String postfix)
throws java.rmi.RemoteException
- A simple wrapper for
requestSession(String[], String, String, true). That is,
the web service configuration is used to determine if SSO should be
used or not.
- Specified by:
requestSession in interface AuthenticationIF
requestSession
public java.lang.String requestSession(java.lang.String[] attributes,
java.lang.String prefix,
java.lang.String postfix,
boolean denySSO)
throws java.rmi.RemoteException
- Request a new Moria session, with the option to turn off SSO even though
the web service authorization config would allow it.
- Specified by:
requestSession in interface AuthenticationIF
getAttributes
public java.util.HashMap getAttributes(java.lang.String id)
throws java.rmi.RemoteException
- Specified by:
getAttributes in interface AuthenticationIF
assertPrincipals
private static void assertPrincipals(java.security.Principal pCurrent,
java.security.Principal pStored)
throws no.feide.moria.SessionException,
java.rmi.RemoteException
- Utility method, used to check if a given client service principal
matches the principal stored in the session.
null values
are allowed.