com.funambol.email.security
Class EmailOfficer
java.lang.Object
com.funambol.email.security.EmailOfficer
- All Implemented Interfaces:
- com.funambol.framework.security.Officer, java.io.Serializable
- public class EmailOfficer
- extends java.lang.Object
- implements com.funambol.framework.security.Officer, java.io.Serializable
This is an implementation of the Officier interface.
It always authenticates and authorizes users and resource accesses.
- See Also:
- Serialized Form
Field Summary |
protected java.util.logging.Logger |
log
|
protected com.funambol.framework.server.store.PersistentStore |
ps
|
protected com.funambol.server.admin.UserManager |
userManager
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected java.util.logging.Logger log
ps
protected com.funambol.framework.server.store.PersistentStore ps
userManager
protected com.funambol.server.admin.UserManager userManager
EmailOfficer
public EmailOfficer()
isLoginFailed
public boolean isLoginFailed()
- Returns:
- boolean
getClientAuth
public java.lang.String getClientAuth()
- Specified by:
getClientAuth
in interface com.funambol.framework.security.Officer
- Returns:
- String
setClientAuth
public void setClientAuth(java.lang.String clientAuth)
- Parameters:
clientAuth
- String
getServerAuth
public java.lang.String getServerAuth()
- Specified by:
getServerAuth
in interface com.funambol.framework.security.Officer
- Returns:
- String
setServerAuth
public void setServerAuth(java.lang.String serverAuth)
- Parameters:
serverAuth
- String
authenticate
public boolean authenticate(com.funambol.framework.core.Cred credential)
- Authenticates a credential.
- Specified by:
authenticate
in interface com.funambol.framework.security.Officer
- Parameters:
credential
- the credential to be authenticated
- Returns:
- true if the credential is autenticated, false otherwise
authorize
public boolean authorize(java.security.Principal principal,
java.lang.String resource)
- Authorizes a resource.
- Specified by:
authorize
in interface com.funambol.framework.security.Officer
- Parameters:
principal
- the requesting entityresource
- the name (or the identifier) of the resource to be authorized
- Returns:
- true if the credential is authorized to access the resource, false
otherwise
unAuthenticate
public void unAuthenticate(com.funambol.framework.core.Cred credential)
- Un-authenticates a credential.
Do nothing. In the current implementation, the authentication is
discarde as soon as the LoginContext is garbage collected.
- Specified by:
unAuthenticate
in interface com.funambol.framework.security.Officer
- Parameters:
credential
- the credential to be unauthenticated
isAccountExpired
public boolean isAccountExpired()
- Specified by:
isAccountExpired
in interface com.funambol.framework.security.Officer
- Returns:
- boolean
Copyright © 2003-2006 Funambol.