|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.kernel.security.CredentialManager
com.arsdigita.kernel.security.URLManager
Manages a string value stored in a URL parameter.
URLLoginModule
Field Summary | |
static String |
versionId
|
Constructor Summary | |
URLManager(Set models)
Creates a URLManager that manages the URL parameters specified by the given set of bebop StringParameters . |
Method Summary | |
protected void |
deleteValue()
Removes all public credentials in this Subject that are ParameterData with name
getModule().getCredentialName() . |
protected String |
getValue()
Extracts the parameter named getModule().getCredentialName() from the current HTTP
request. |
void |
initialize(CredentialLoginModule module,
javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
Map shared,
Map options)
Adds the StringParameters provided in the constructor to
the Subject's set of public credentials. |
protected void |
setValue(String value)
Adds a URL parameter that authenticates the user to this Subject's public credentials. |
protected boolean |
shouldSetValue(String value)
Ensures that setValue() is called for every commit. |
Methods inherited from class com.arsdigita.kernel.security.CredentialManager |
getModule |
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 |
public URLManager(Set models)
StringParameters
.
models
- a set of bebop StringParameters
Method Detail |
public void initialize(CredentialLoginModule module, javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, Map shared, Map options)
StringParameters
provided in the constructor to
the Subject's set of public credentials. Allows the calling code to
determine what URL parameters might be set by this URLManager.
initialize
in class CredentialManager
module
- the CredentialLoginModule
associated with
this CredentialManager
.protected boolean shouldSetValue(String value) throws javax.security.auth.login.LoginException
setValue()
is called for every commit.
shouldSetValue
in class CredentialManager
value
- the new value for the credential
true
.
javax.security.auth.login.LoginException
- if an error occurs.protected final String getValue() throws javax.security.auth.login.LoginException
getModule().getCredentialName()
from the current HTTP
request.
getValue
in class CredentialManager
javax.security.auth.login.LoginException
- if an error occurs.protected final void setValue(String value) throws javax.security.auth.login.LoginException
ParameterData
whose ParameterModel
is one
of the models provided in the constructor.
setValue
in class CredentialManager
value
- the new value for the credential
javax.security.auth.login.LoginException
- if an error occurs.protected final void deleteValue() throws javax.security.auth.login.LoginException
ParameterData
with name
getModule().getCredentialName()
.
deleteValue
in class CredentialManager
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 |