public abstract class AuthenticationService extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AuthenticationListener |
authListener |
protected java.lang.String |
credential |
protected java.lang.String |
operationName |
protected java.lang.String |
password |
protected java.lang.String |
serviceURL |
protected java.lang.String |
userName |
Constructor and Description |
---|
AuthenticationService() |
Modifier and Type | Method and Description |
---|---|
abstract ProxyEntity |
authenticate(Domain domain)
Authenticate a user
|
java.lang.String |
getCredential() |
boolean |
isAuthenticated()
Note, currently unused, and authenticate(null) will cause NPE.
|
void |
setAuthenticationListener(AuthenticationListener listener)
Set the authentication listener
|
void |
setOperationName(java.lang.String operationName) |
void |
setPassword(java.lang.String password) |
void |
setServiceURL(java.lang.String serviceURL) |
void |
setUserName(java.lang.String userName) |
abstract void |
unauthenticate(ProxyEntity proxy)
Unauthenticate a user
|
protected java.lang.String serviceURL
protected java.lang.String operationName
protected java.lang.String userName
protected java.lang.String password
protected java.lang.String credential
protected AuthenticationListener authListener
public AuthenticationService()
public void setOperationName(java.lang.String operationName)
operationName
- The operationName to set.public void setPassword(java.lang.String password)
password
- The password to set.public void setServiceURL(java.lang.String serviceURL)
serviceURL
- The serviceURL to set.public void setUserName(java.lang.String userName)
userName
- The userName to set.public boolean isAuthenticated() throws AuthenticationException
AuthenticationException
public java.lang.String getCredential()
public void setAuthenticationListener(AuthenticationListener listener)
listener
- public abstract ProxyEntity authenticate(Domain domain) throws AuthenticationException
AuthenticationException
public abstract void unauthenticate(ProxyEntity proxy) throws AuthenticationException
AuthenticationException