public class CheckAndRecordServerTLSEntityAuthenticationtHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
HttpClient server TLS authentication
as stored in the @link HttpClientContext resolved via strategy function.
If server TLS was performed and successful,
store a positive authentication result in the configured AbstractAuthenticatableSAMLEntityContext.
If the entity context's entityID is not already populated, and the appropriate entityID strategy function
is configured, also attempt to resolve the authenticated entityID and if successful populate the entity context.
| Modifier and Type | Class and Description |
|---|---|
class |
CheckAndRecordServerTLSEntityAuthenticationtHandler.DefaultHttpClientContextLookup
The default
HttpClientContext strategy function, which resolves from the HttpClientRequestContext
of the outbound MessageContext of the parent {@link InOutOperationContext. |
| Modifier and Type | Field and Description |
|---|---|
private Class<? extends AbstractAuthenticatableSAMLEntityContext> |
entityContextClass
The actual context class holding the authenticatable SAML entity.
|
private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,String> |
entityIDLookup
The strategy function for resolving the authenticated entityID.
|
private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,HttpClientContext> |
httpClientContextLookup
The strategy function for resolving the
to evaluate. |
private Logger |
log
Logger.
|
| Constructor and Description |
|---|
CheckAndRecordServerTLSEntityAuthenticationtHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
void |
setEntityContextClass(Class<? extends AbstractAuthenticatableSAMLEntityContext> clazz)
Set the class type holding the authenticatable SAML entity data.
|
void |
setEntityIDLookup(org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,String> strategy)
Set the strategy function for resolving the authenticated entityID.
|
void |
setHttpClientContextLookup(org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,HttpClientContext> strategy)
Set the strategy function for resolving the
to evaluate. |
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedprivate Logger log
@Nonnull private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,HttpClientContext> httpClientContextLookup
to evaluate.@Nonnull private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,String> entityIDLookup
@Nonnull private Class<? extends AbstractAuthenticatableSAMLEntityContext> entityContextClass
public CheckAndRecordServerTLSEntityAuthenticationtHandler()
public void setHttpClientContextLookup(@Nonnull org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,HttpClientContext> strategy)
to evaluate.strategy - the new strategy functionpublic void setEntityContextClass(@Nonnull Class<? extends AbstractAuthenticatableSAMLEntityContext> clazz)
Defaults to: SAMLPeerEntityContext.
clazz - the entity context class typepublic void setEntityIDLookup(@Nullable org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,String> strategy)
strategy - the new strategy function, or nullprotected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerorg.opensaml.messaging.handler.MessageHandlerExceptionCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.