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().
BaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Logger.
|
private boolean |
useSAML1QueryResourceAsEntityId
Whether to use the resource of SAML 1 queries to resolve the entity ID.
|
| Constructor and Description |
|---|
SAMLPeerEntityContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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 java.lang.String |
processSaml1AttributeQuery(AttributeQuery query)
Resolve the SAML entity ID from a SAML 1 AttributeQuery.
|
protected java.lang.String |
processSaml1AuthorizationDecisionQuery(AuthorizationDecisionQuery query)
Resolve the SAML entityID from a SAML 1 AuthorizationDecisionQuery.
|
protected java.lang.String |
processSaml1Request(Request request)
Resolve the SAML entity ID from a SAML 1 request.
|
protected java.lang.String |
processSaml1Response(Response response)
Resolve the SAML entity ID from a SAML 1 response.
|
protected java.lang.String |
processSaml2Issuer(Issuer issuer)
Resolve the SAML entity ID from a SAML 2 Issuer.
|
protected java.lang.String |
processSaml2Request(RequestAbstractType request)
Resolve the SAML entity ID from a SAML 2 request.
|
protected java.lang.String |
processSaml2Response(StatusResponseType response)
Resolve the SAML entity ID from a SAML 2 response.
|
protected java.lang.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, setAuthenticatedgetRole, setEntityId, setRoleaddSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull private org.slf4j.Logger log
private boolean useSAML1QueryResourceAsEntityId
@Nullable @NotEmpty public java.lang.String getEntityId()
getEntityId in class AbstractSAMLEntityContextpublic 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 java.lang.String resolveEntityId()
MessageContext.getMessage().@Nullable
protected java.lang.String processSaml2Request(@Nonnull
RequestAbstractType request)
request - the request@Nullable
protected java.lang.String processSaml2Response(@Nonnull
StatusResponseType response)
response - the response@Nullable
protected java.lang.String processSaml2Issuer(@Nonnull
Issuer issuer)
issuer - the issuer@Nullable
protected java.lang.String processSaml1Response(@Nonnull
Response response)
response - the response@Nullable
protected java.lang.String processSaml1Request(@Nonnull
Request request)
request - the request@Nullable
protected java.lang.String processSaml1AttributeQuery(@Nonnull
AttributeQuery query)
query - the query@Nullable
protected java.lang.String processSaml1AuthorizationDecisionQuery(@Nonnull
AuthorizationDecisionQuery query)
query - the query@Nullable protected SAMLObject resolveSAMLMessage()