|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.clearspace.ClearspaceAuthProvider
public class ClearspaceAuthProvider
The ClearspaceAuthProvider uses the PermissionService web service inside of Clearspace to retrieve authenticate users. It current version of Clearspace only supports plain authentication.
Field Summary | |
---|---|
protected static String |
URL_PREFIX
|
Constructor Summary | |
---|---|
ClearspaceAuthProvider()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String URL_PREFIX
Constructor Detail |
---|
public ClearspaceAuthProvider()
Method Detail |
---|
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 sytem
InternalUnauthenticatedException
- if there is a problem authentication Openfire iteself 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 digest
UnauthorizedException
- never throws it
UnsupportedOperationException
- always throws itpublic String getPassword(String username) throws UserNotFoundException, UnsupportedOperationException
getPassword
in interface AuthProvider
username
- the username of the user.
UnsupportedOperationException
- always throws it
UserNotFoundException
- 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 it
UserNotFoundException
- if the given user could not be loaded.public boolean supportsPasswordRetrieval()
supportsPasswordRetrieval
in interface AuthProvider
UnsupportedOperationException
- always throws it
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |