public class SAMLPeerEntityContext extends AbstractAuthenticatableSAMLEntityContext
The method getEntityId()
will attempt to dynamically resolve the appropriate data
from the SAML message held in the message context if the data has not been set statically
by the corresponding setter method. This evaluation will be attempted only if the this
context instance is an immediate child of the message context, as returned by BaseContext.getParent()
.
Constructor and Description |
---|
SAMLPeerEntityContext()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEntityId()
Gets the entityId of the SAML entity.
|
boolean |
getUseSAML1QueryResourceAsEntityId()
Gets whether to use the Resource attribute of some SAML 1 queries to resolve the entity
ID.
|
protected String |
processSaml1AttributeQuery(AttributeQuery query)
Resolve the SAML entity ID from a SAML 1 AttributeQuery.
|
protected String |
processSaml1AuthorizationDecisionQuery(AuthorizationDecisionQuery query)
Resolve the SAML entityID from a SAML 1 AuthorizationDecisionQuery.
|
protected String |
processSaml1Request(Request request)
Resolve the SAML entity ID from a SAML 1 request.
|
protected String |
processSaml1Response(Response response)
Resolve the SAML entity ID from a SAML 1 response.
|
protected String |
processSaml2Issuer(Issuer issuer)
Resolve the SAML entity ID from a SAML 2 Issuer.
|
protected String |
processSaml2Request(RequestAbstractType request)
Resolve the SAML entity ID from a SAML 2 request.
|
protected String |
processSaml2Response(StatusResponseType response)
Resolve the SAML entity ID from a SAML 2 response.
|
protected String |
resolveEntityId()
Dynamically resolve the SAML peer entity ID from the SAML protocol message held in
MessageContext.getMessage() . |
protected SAMLObject |
resolveSAMLMessage()
Resolve the SAML message from the message context.
|
void |
setUseSAML1QueryResourceAsEntityId(boolean useResource)
Sets whether to use the Resource attribute of some SAML 1 queries to resolve the entity ID.
|
isAuthenticated, setAuthenticated
getRole, setEntityId, setRole
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@Nullable @NotEmpty public String getEntityId()
getEntityId
in class AbstractSAMLEntityContext
public boolean getUseSAML1QueryResourceAsEntityId()
public void setUseSAML1QueryResourceAsEntityId(boolean useResource)
useResource
- whether to use the Resource attribute of some SAML 1 queries to resolve the entity ID@Nullable protected String resolveEntityId()
MessageContext.getMessage()
.@Nullable protected String processSaml2Request(@Nonnull RequestAbstractType request)
request
- the request@Nullable protected String processSaml2Response(@Nonnull StatusResponseType response)
response
- the response@Nullable protected String processSaml2Issuer(@Nonnull Issuer issuer)
issuer
- the issuer@Nullable protected String processSaml1Response(@Nonnull Response response)
response
- the response@Nullable protected String processSaml1Request(@Nonnull Request request)
request
- the request@Nullable protected String processSaml1AttributeQuery(@Nonnull AttributeQuery query)
query
- the query@Nullable protected String processSaml1AuthorizationDecisionQuery(@Nonnull AuthorizationDecisionQuery query)
query
- the query@Nullable protected SAMLObject resolveSAMLMessage()
Copyright © 2016 JBoss by Red Hat. All rights reserved.