|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.authentication.loginmodule.AbstractLoginModule
org.n52.security.authentication.loginmodule.SAMLTicketLoginModule
public class SAMLTicketLoginModule
Authenticates users by checking a SAMLResponse (or better an instance of SAMLTicket
).
Adds a list of RolePrincipal
to the subject.
Field Summary | |
---|---|
static java.lang.String |
OPTION_EXPIRED_TIME_OFFSET
expired timeset offset option identifier. |
static java.lang.String |
OPTION_NO_VALIDATION
no validation option identifier. |
static java.lang.String |
OPTION_SAML_ROLE_ATTRIBUTE_NAME
SAMLAttribute role name option identifier. |
static java.lang.String |
OPTION_VALIDATION_KEYPAIR
validation key pair option identifier. |
Fields inherited from class org.n52.security.authentication.loginmodule.AbstractLoginModule |
---|
m_callbackHandler, m_commitSucceeded, m_loginSucceeded, m_options, m_principals, m_privateCredentials, m_publicCredentials, m_sharedState, m_subject |
Constructor Summary | |
---|---|
SAMLTicketLoginModule()
|
Method Summary | |
---|---|
protected void |
clearAuthenticationState()
Method cleanAuthenticationState is a template method used to invoke a cleanup of any authentication information provided by the user e.g. the user name and password used to login the user. |
protected java.lang.String |
getDescription()
Method gets the description of this LoginModule. |
protected void |
initialize()
Initializes the login module. |
boolean |
performLogin()
Method performs the real login, this is called by the pre implented login() method. |
protected void |
prepareCommitState()
Method prepareCommitState is a template method used to let a sub class prepare all principals and credentials, which then will be applied to the subject. |
Methods inherited from class org.n52.security.authentication.loginmodule.AbstractLoginModule |
---|
abort, addPrincipal, addPrivateCredential, addPublicCredential, clearInternalState, commit, commitState, destroy, getCallbackHandler, getOptions, getPrincipals, getPrivateCredentials, getPublicCredentials, getSharedState, getSubject, handleCallbacks, initialize, isCallbackHandlerSet, isCommitSucceeded, isLoginSucceeded, login, logout, setCommitSucceeded, setLoginSucceeded, showModuleBanner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPTION_VALIDATION_KEYPAIR
public static final java.lang.String OPTION_NO_VALIDATION
public static final java.lang.String OPTION_EXPIRED_TIME_OFFSET
public static final java.lang.String OPTION_SAML_ROLE_ATTRIBUTE_NAME
Constructor Detail |
---|
public SAMLTicketLoginModule()
Method Detail |
---|
protected java.lang.String getDescription()
AbstractLoginModule
TextOutputCallback
on the callback handler.
getDescription
in class AbstractLoginModule
AbstractLoginModule.getDescription()
protected void clearAuthenticationState() throws javax.security.auth.login.LoginException
AbstractLoginModule
clearAuthenticationState
in class AbstractLoginModule
javax.security.auth.login.LoginException
- if an error occurs.AbstractLoginModule.clearAuthenticationState()
protected void initialize()
initialize
in class AbstractLoginModule
AbstractLoginModule.initialize()
public boolean performLogin() throws javax.security.auth.login.LoginException
AbstractLoginModule
performLogin
in class AbstractLoginModule
javax.security.auth.login.LoginException
- if error occurs.AbstractLoginModule.performLogin()
protected void prepareCommitState() throws javax.security.auth.login.LoginException
AbstractLoginModule
prepareCommitState
in class AbstractLoginModule
javax.security.auth.login.LoginException
- if error occurs.AbstractLoginModule.prepareCommitState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |