public class SamlIdpSingleUser extends Object implements SamlIdentityProviderApi
| Constructor and Description |
|---|
SamlIdpSingleUser() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticationFailed(javax.servlet.http.HttpServletResponse response)
This is one of the possible responses that relate to the SPI call
SamlIdentityProviderSpi.authenticate(org.jboss.seam.security.external.api.ResponseHolder). |
void |
authenticationSucceeded(javax.servlet.http.HttpServletResponse response)
This is one of the possible responses that relate to the SPI call
SamlIdentityProviderSpi.authenticate(org.jboss.seam.security.external.api.ResponseHolder). |
SamlNameId |
createNameId(String value,
String format,
String qualifier)
Creates a name identifier with the given properties.
|
SamlIdpSession |
getSession()
Gets the current SAML session.
|
void |
globalLogout(javax.servlet.http.HttpServletResponse response)
Globally logs out the current user.
|
void |
localLogin(SamlNameId nameId,
List<AttributeType> attributes)
Creates a local SAML session for the user with the given name and
attributes.
|
void |
localLogout()
Removes the local SAML session for the current user.
|
void |
remoteLogin(String spEntityId,
String remoteUrl,
javax.servlet.http.HttpServletResponse response)
Logs the user in remotely in the application of the given service
provider.
|
public void authenticationSucceeded(javax.servlet.http.HttpServletResponse response)
SamlIdentityProviderApiSamlIdentityProviderSpi.authenticate(org.jboss.seam.security.external.api.ResponseHolder). If should be called in the
same dialogue context as the corresponding SPI call. It instructs the SAML
identity provider to send a positive authentication result back to the
service provider, using the local SAML session, which must have been
established before this call is done (by a previous call to
SamlIdentityProviderApi.localLogin(org.jboss.seam.security.external.saml.api.SamlNameId, java.util.List<org.jboss.seam.security.external.jaxb.samlv2.assertion.AttributeType>)).authenticationSucceeded in interface SamlIdentityProviderApiresponse - the HTTP servlet responsepublic void authenticationFailed(javax.servlet.http.HttpServletResponse response)
SamlIdentityProviderApiSamlIdentityProviderSpi.authenticate(org.jboss.seam.security.external.api.ResponseHolder). If should be called in the
same dialogue context as the corresponding SPI call. It instructs the SAML
identity provider to send a positive authentication result back to the
service provider.authenticationFailed in interface SamlIdentityProviderApiresponse - the HTTP servlet responsepublic SamlIdpSession getSession()
SamlIdentityProviderApigetSession in interface SamlIdentityProviderApipublic void localLogin(SamlNameId nameId, List<AttributeType> attributes)
SamlIdentityProviderApiSamlIdentityProviderApi.remoteLogin(java.lang.String, java.lang.String, javax.servlet.http.HttpServletResponse) or
an SamlIdentityProviderApi.authenticationSucceeded(javax.servlet.http.HttpServletResponse) call.localLogin in interface SamlIdentityProviderApipublic void remoteLogin(String spEntityId, String remoteUrl, javax.servlet.http.HttpServletResponse response)
SamlIdentityProviderApiLogs the user in remotely in the application of the given service provider. If the remote URL is specified, the service provider will redirect the user to that URL within the service provider's application. Otherwise, the service provider will determine for itself which page is shown to the user.
In SAML terms, this call results in an "unsolicited login" at the side of the service provider.
remoteLogin in interface SamlIdentityProviderApispEntityId - the entity id of the remote service providerremoteUrl - the URL where the user agent needs to be redirected to by
the service provider (can be null)response - the HTTP servlet responsepublic void localLogout()
SamlIdentityProviderApilocalLogout in interface SamlIdentityProviderApipublic void globalLogout(javax.servlet.http.HttpServletResponse response)
SamlIdentityProviderApiglobalLogout in interface SamlIdentityProviderApiresponse - the HTTP servlet responsepublic SamlNameId createNameId(String value, String format, String qualifier)
SamlIdentityProviderApiSamlIdentityProviderApi.localLogin(org.jboss.seam.security.external.saml.api.SamlNameId, java.util.List<org.jboss.seam.security.external.jaxb.samlv2.assertion.AttributeType>) call.createNameId in interface SamlIdentityProviderApivalue - value (required)format - format (optional)qualifier - qualifier (optional)Copyright © 2013 Seam Framework. All Rights Reserved.