public class FSAssertionArtifactHandler extends Object
SP
side to receive and process
AuthnResponse
.Modifier and Type | Field and Description |
---|---|
protected AttributeStatement |
_autoFedStatement |
protected static String |
ANONYMOUS_PRINCIPAL |
protected FSAttributeMapper |
attributeMapper |
protected List |
attrStatements |
protected FSAuthnRequest |
authnRequest |
protected FSAuthnResponse |
authnResponse |
protected Map |
autoFedSearchMap |
protected AttributeStatement |
bootStrapStatement |
protected boolean |
doFederate |
protected com.sun.identity.federation.jaxb.entityconfig.BaseConfigType |
hostConfig |
protected com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType |
hostDesc |
protected String |
hostEntityId |
protected String |
hostMetaAlias |
protected com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType |
idpDescriptor |
protected String |
idpEntityId |
protected static Map |
idTimeMap |
protected String |
nameIDPolicy |
protected String |
realm |
protected FSRealmAttributeMapper |
realmAttributeMapper |
protected String |
relayState |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
protected FSResponse |
samlResponse |
protected Element |
samlResponseElt |
protected List |
securityAssertions |
protected Object |
ssoToken |
Modifier | Constructor and Description |
---|---|
protected |
FSAssertionArtifactHandler()
Default constructor.
|
|
FSAssertionArtifactHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType idpDescriptor,
String idpEntityId,
boolean doFederate,
String nameIDPolicy,
String relayState)
Constructs a
FSAssertionArtifactHandler object. |
|
FSAssertionArtifactHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType idpDescriptor,
String idpEntityId,
FSAuthnRequest authnRequest,
boolean doFederate,
String relayState)
Constructs a
FSAssertionArtifactHandler object. |
Modifier and Type | Method and Description |
---|---|
protected int |
doAccountFederation(NameIdentifier ni) |
protected int |
doSingleSignOn(NameIdentifier ni,
int handleType,
NameIdentifier niIdp,
Map env) |
protected boolean |
forThisServer(Conditions conds) |
protected Object |
generateAnonymousToken(javax.servlet.http.HttpServletResponse response)
Generates an anonymous token for onetime case.
|
protected int |
generateToken(NameIdentifier ni,
int handleType,
NameIdentifier niIdp,
Map env) |
String |
getAuthInstant()
Gets
AuthInstant . |
FSAuthnRequest |
getAuthnRequest()
Gets
FSAuthnRequest object. |
String |
getHostEntityId()
Gets hosted SP's Entity ID.
|
protected FSAuthnRequest |
getInResponseToRequest(String requestID) |
protected String |
getProvider(String requestID) |
String |
getRealm()
Gets the realm under which the entity resides.
|
protected boolean |
isIDPProxyEnabled(String requestID)
Checks if the proxying is enabled.
|
void |
processAuthnResponse(FSAuthnResponse authnResponse)
Processes
FSAuthnResponse . |
protected void |
processSAMLRequest() |
protected void |
redirectToResource(String resourceURL) |
protected void |
sendProxyResponse(String requestID)
Sends the proxy authentication response to the proxying service
provider which has originally requested for the authentication.
|
void |
setAuthnRequest(FSAuthnRequest authnRequest)
Sets
FSAuthnRequest object. |
void |
setHostDescriptor(com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType desc)
Sets hosted SP meta descriptor.
|
void |
setHostDescriptorConfig(com.sun.identity.federation.jaxb.entityconfig.BaseConfigType config)
Sets hosted SP extended meta config.
|
void |
setHostEntityId(String entityId)
Sets hosted SP entity ID.
|
void |
setMetaAlias(String metaAlias)
Sets hosted SP's meta alias.
|
void |
setProviderDescriptor(com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType idpDescriptor)
Sets
IDP provider descriptor. |
void |
setProviderEntityId(String idpEntityId)
Sets
IDP provider entity ID. |
void |
setRealm(String realm)
Sets the realm under which the entity resides.
|
protected Subject |
validateAssertions(List assertions) |
protected boolean |
verifyAssertionSignature(FSAssertion assertion) |
protected boolean |
verifyResponseStatus(Response resp) |
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType idpDescriptor
protected String idpEntityId
protected FSAuthnRequest authnRequest
protected String relayState
protected static Map idTimeMap
protected boolean doFederate
protected String nameIDPolicy
protected AttributeStatement bootStrapStatement
protected AttributeStatement _autoFedStatement
protected Map autoFedSearchMap
protected List securityAssertions
protected Object ssoToken
protected FSAuthnResponse authnResponse
protected Element samlResponseElt
protected List attrStatements
protected com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType hostDesc
protected com.sun.identity.federation.jaxb.entityconfig.BaseConfigType hostConfig
protected String realm
protected String hostEntityId
protected String hostMetaAlias
protected static String ANONYMOUS_PRINCIPAL
protected FSAttributeMapper attributeMapper
protected FSRealmAttributeMapper realmAttributeMapper
protected FSResponse samlResponse
protected FSAssertionArtifactHandler()
public FSAssertionArtifactHandler(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType idpDescriptor, String idpEntityId, boolean doFederate, String nameIDPolicy, String relayState)
FSAssertionArtifactHandler
object.request
- HttpServletRequest
object.response
- HttpServletResponse
objectidpDescriptor
- IDP
provider descriptoridpEntityId
- entity ID of the IDP
doFederate
- a flag indicating if it is a federation requestnameIDPolicy
- nameIDPolicy
usedrelayState
- RelayState
urlpublic FSAssertionArtifactHandler(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType idpDescriptor, String idpEntityId, FSAuthnRequest authnRequest, boolean doFederate, String relayState)
FSAssertionArtifactHandler
object.request
- HttpServletRequest
object.response
- HttpServletResponse
objectidpDescriptor
- IDP
provider descriptoridpEntityId
- entity ID of the IDP
authnRequest
- FSAuthnRequest
from soapdoFederate
- a flag indicating if it is a federation requestrelayState
- RelayState
urlpublic void setHostEntityId(String entityId)
entityId
- hosted SP's entity ID to be setpublic void setHostDescriptor(com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType desc)
desc
- SP's meta descriptor to be set.getHostEntityId()
public void setHostDescriptorConfig(com.sun.identity.federation.jaxb.entityconfig.BaseConfigType config)
config
- SP's extended meta to be set.public void setMetaAlias(String metaAlias)
metaAlias
- SP's meta alias to be setpublic String getHostEntityId()
setHostEntityId(String)
public String getRealm()
setRealm(String)
public void setRealm(String realm)
realm
- The realm under which the entity resides.getRealm()
public FSAuthnRequest getAuthnRequest()
FSAuthnRequest
object.FSAuthnRequest
objectsetAuthnRequest(FSAuthnRequest)
public void setAuthnRequest(FSAuthnRequest authnRequest)
FSAuthnRequest
object.authnRequest
- FSAuthnRequest
object to be set.getAuthnRequest()
public void processAuthnResponse(FSAuthnResponse authnResponse)
FSAuthnResponse
.authnResponse
- FSAuthnResponse
objec to be processedprotected boolean verifyResponseStatus(Response resp)
protected boolean verifyAssertionSignature(FSAssertion assertion)
protected boolean forThisServer(Conditions conds)
protected int generateToken(NameIdentifier ni, int handleType, NameIdentifier niIdp, Map env)
protected void processSAMLRequest()
protected int doSingleSignOn(NameIdentifier ni, int handleType, NameIdentifier niIdp, Map env)
protected void redirectToResource(String resourceURL) throws FSException
FSException
protected int doAccountFederation(NameIdentifier ni)
protected Object generateAnonymousToken(javax.servlet.http.HttpServletResponse response) throws SessionException
SessionException
protected FSAuthnRequest getInResponseToRequest(String requestID)
public void setProviderDescriptor(com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType idpDescriptor)
IDP
provider descriptor.idpDescriptor
- identity provider descriptor.public void setProviderEntityId(String idpEntityId)
IDP
provider entity ID.idpEntityId
- identity provider entity id.public String getAuthInstant()
AuthInstant
.AuthInstant
in UTC date format.protected boolean isIDPProxyEnabled(String requestID)
requestID
- authentication request id which is created by the
proxying IDP to the authenticating IDP.protected void sendProxyResponse(String requestID)
requestID
- authnRequest id that is sent to the authenticating
Identity Provider.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.