|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.crypto.sasl.plain.PlainAuthInfoProvider
The PLAIN mechanism authentication information provider implementation.
Field Summary |
Fields inherited from interface gnu.crypto.sasl.plain.PlainRegistry |
DEFAULT_PASSWORD_FILE, DIR_FIELD, GECOS_FIELD, GID_FIELD, PASSWORD_FILE, SHELL_FIELD, UID_FIELD |
Constructor Summary | |
PlainAuthInfoProvider()
|
Method Summary | |
void |
activate(java.util.Map context)
Activates (initialises) this provider instance. |
boolean |
contains(java.lang.String userName)
Checks if a user with a designated name is known to this provider. |
java.util.Map |
getConfiguration(java.lang.String mode)
A provider may operate in more than mode; e.g. |
java.util.Map |
lookup(java.util.Map userID)
Returns a collection of information about a designated user. |
void |
passivate()
Passivates (releases) this provider instance. |
void |
update(java.util.Map userCredentials)
Updates the credentials of a designated user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlainAuthInfoProvider()
Method Detail |
public void activate(java.util.Map context) throws javax.security.sasl.AuthenticationException
IAuthInfoProvider
activate
in interface IAuthInfoProvider
context
- a collection of name-value bindings describing the
activation context.
javax.security.sasl.AuthenticationException
- if an exception occurs during the operation.public void passivate() throws javax.security.sasl.AuthenticationException
IAuthInfoProvider
passivate
in interface IAuthInfoProvider
javax.security.sasl.AuthenticationException
- if an exception occurs during the operation.public boolean contains(java.lang.String userName) throws javax.security.sasl.AuthenticationException
IAuthInfoProvider
contains
in interface IAuthInfoProvider
userName
- the name of a user to check.
true
if the user with the designated name is known to
this provider; false
otherwise.
javax.security.sasl.AuthenticationException
- if an exception occurs during the operation.public java.util.Map lookup(java.util.Map userID) throws javax.security.sasl.AuthenticationException
IAuthInfoProvider
lookup
in interface IAuthInfoProvider
userID
- a map of name-to-value bindings that fully describe a user.
javax.security.sasl.AuthenticationException
- if an exception occurs during the operation.public void update(java.util.Map userCredentials) throws javax.security.sasl.AuthenticationException
IAuthInfoProvider
update
in interface IAuthInfoProvider
userCredentials
- a map of name-to-value bindings that fully describe
a user, including per new credentials.
javax.security.sasl.AuthenticationException
- if an exception occurs during the operation.public java.util.Map getConfiguration(java.lang.String mode) throws javax.security.sasl.AuthenticationException
IAuthInfoProvider
getConfiguration
in interface IAuthInfoProvider
mode
- a unique identifier describing the operational mode.
javax.security.sasl.AuthenticationException
- if an exception occurs during the operation.
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |