|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.kernel.security.CredentialManager
Provides methods for saving, retrieving, and deleting a string value from
HTTP requests and responses. Used with
CredentialLoginModule to get, set, and delete client
authentication credentials.
CredentialLoginModule| Field Summary | |
static String |
versionId
|
| Constructor Summary | |
protected |
CredentialManager()
Constructs a new CredentialManager. |
| Method Summary | |
protected abstract void |
deleteValue()
Deletes the credential named by getModule().getCredentialName(). |
protected CredentialLoginModule |
getModule()
Returns the CredentialLoginModule associated with this
CredentialManager. |
protected abstract String |
getValue()
Retrieves the value of the credential named by getModule().getCredentialName(). |
protected void |
initialize(CredentialLoginModule module,
javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
Map shared,
Map options)
Initializes this with the login context information. |
protected abstract void |
setValue(String value)
Sets the credential named by getModule().getCredentialName() to the given value. |
protected abstract boolean |
shouldSetValue(String value)
Determines whether setValue() should be called. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String versionId
| Constructor Detail |
protected CredentialManager()
CredentialManager.
| Method Detail |
protected CredentialLoginModule getModule()
CredentialLoginModule associated with this
CredentialManager.
protected void initialize(CredentialLoginModule module,
javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
Map shared,
Map options)
CredentialLoginModule.initialize().
module - the CredentialLoginModule associated with
this CredentialManager.
protected abstract String getValue()
throws javax.security.auth.login.LoginException
getModule().getCredentialName().
CredentialNotFoundException - if credential does not exist.
javax.security.auth.login.LoginException - if an error occurs.
protected abstract boolean shouldSetValue(String value)
throws javax.security.auth.login.LoginException
setValue() should be called.
value - the new value for the credential
setValue() should be called
javax.security.auth.login.LoginException - if an error occurs.
protected abstract void setValue(String value)
throws javax.security.auth.login.LoginException
getModule().getCredentialName() to the given value.
value - the new value for the credential
javax.security.auth.login.LoginException - if an error occurs.
protected abstract void deleteValue()
throws javax.security.auth.login.LoginException
getModule().getCredentialName().
javax.security.auth.login.LoginException - if an error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||