public class ClearspaceAuthProvider extends Object implements AuthProvider
Modifier and Type | Field and Description |
---|---|
protected static String |
URL_PREFIX |
Constructor and Description |
---|
ClearspaceAuthProvider() |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(String username,
String password)
Authenticates the user using permissionService/authenticate service of Clearspace.
|
void |
authenticate(String username,
String token,
String digest)
This method is not supported.
|
String |
getPassword(String username)
This method is not supported.
|
boolean |
isDigestSupported()
Clearspace currently doesn't support digest authentication.
|
boolean |
isPlainSupported()
Clearspace currently supports only plain authentication.
|
void |
setPassword(String username,
String password)
This method is not supported.
|
boolean |
supportsPasswordRetrieval()
This method is not supported.
|
protected static final String URL_PREFIX
public boolean isPlainSupported()
isPlainSupported
in interface AuthProvider
public boolean isDigestSupported()
isDigestSupported
in interface AuthProvider
public void authenticate(String username, String password) throws UnauthorizedException, ConnectionException, InternalUnauthenticatedException
authenticate
in interface AuthProvider
username
- the username.password
- the password.UnauthorizedException
- if the username of password are incorrect.ConnectionException
- it there is a problem connecting to user and group systemInternalUnauthenticatedException
- if there is a problem authentication Openfire itself into the user and group systempublic void authenticate(String username, String token, String digest) throws UnauthorizedException
authenticate
in interface AuthProvider
username
- the usernametoken
- the tokendigest
- the digestUnauthorizedException
- never throws itUnsupportedOperationException
- always throws itpublic String getPassword(String username) throws UserNotFoundException, UnsupportedOperationException
getPassword
in interface AuthProvider
username
- the username of the user.UnsupportedOperationException
- always throws itUserNotFoundException
- if the given user's password could not be loaded.public void setPassword(String username, String password) throws UserNotFoundException, UnsupportedOperationException
setPassword
in interface AuthProvider
username
- the username of the user.password
- the new plaintext password for the user.UnsupportedOperationException
- always throws itUserNotFoundException
- if the given user could not be loaded.public boolean supportsPasswordRetrieval()
supportsPasswordRetrieval
in interface AuthProvider
UnsupportedOperationException
- always throws itCopyright © 2003-2008 Jive Software.