public class AuthenticationManager extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addProxyEntity(ProxyEntity pentity)
adds a proxyEntity to the entity repository if it was authenticated
outside of the AuthManager.
|
static AuthenticationService |
getAuthenticationService(Domain domain)
returns an instantiation of the correct AuthenticationService based on
the serviceClass listed for the domain.
|
AuthenticationService |
getAuthenticationService(java.lang.String domainName)
return an AuthenticationService for the given domain name
|
static Domain |
getDomain(java.lang.String domainName)
returns a Domain for a given domainName
|
static AuthenticationManager |
getManager()
Part of singleton template, the only way to get an instance of
AuthenticationManager
|
ProxyEntity |
getProxy(java.lang.String domainName)
This function retrieves back the user proxy within specified domain,
adding ProxyEntity to AuthenticationManager's proxyRepository in the
process.
|
ProxyEntity |
peekProxy(java.lang.String domainName) |
boolean |
proxyExists(java.lang.String proxyCredential,
java.lang.String domainName)
Check if a credential with the given domain exists in this manager
|
void |
revokeProxy(ProxyEntity entity) |
void |
setAuthenticationListener(AuthenticationListener listener)
Set the authentication listener
|
public static AuthenticationManager getManager()
public ProxyEntity getProxy(java.lang.String domainName) throws AuthenticationException
domain
- Specified domainAuthenticationException
public void revokeProxy(ProxyEntity entity) throws AuthenticationException
AuthenticationException
public ProxyEntity peekProxy(java.lang.String domainName) throws AuthenticationException
AuthenticationException
public void addProxyEntity(ProxyEntity pentity) throws AuthenticationException
AuthenticationException
public AuthenticationService getAuthenticationService(java.lang.String domainName) throws AuthenticationException
AuthenticationException
public static Domain getDomain(java.lang.String domainName) throws AuthenticationException
AuthenticationException
public static AuthenticationService getAuthenticationService(Domain domain) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public boolean proxyExists(java.lang.String proxyCredential, java.lang.String domainName)
proxyCredential
- the string of the credentialdomaim
- the given domainpublic void setAuthenticationListener(AuthenticationListener listener)
listener
-