Package org.opensaml.security.messaging
Class ClientTLSSecurityParametersContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.security.messaging.ClientTLSSecurityParametersContext
- All Implemented Interfaces:
Iterable<BaseContext>
Messaging context implementation for holding parameters related to validating client TLS
X509Credential instances.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag indicating whether to evaluate the certificate presented by the TLS client.private ClientTLSValidationParametersAClientTLSValidationParametersinstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet an instance ofClientTLSValidationParameters.booleanDetermine whether to evaluate the certificate presented by the TLS client.setEvaluateClientCertificate(boolean flag) Set whether to evaluate the certificate presented by the TLS client.Set an instance ofClientTLSValidationParameters.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
validationParameters
AClientTLSValidationParametersinstance. -
evaluateClientCertificate
private boolean evaluateClientCertificateFlag indicating whether to evaluate the certificate presented by the TLS client.
-
-
Constructor Details
-
ClientTLSSecurityParametersContext
public ClientTLSSecurityParametersContext()
-
-
Method Details
-
isEvaluateClientCertificate
public boolean isEvaluateClientCertificate()Determine whether to evaluate the certificate presented by the TLS client.Defaults to:
true- Returns:
- true if should evaluate, false otherwise
-
setEvaluateClientCertificate
Set whether to evaluate the certificate presented by the TLS client.Defaults to:
true- Parameters:
flag- true if should evaluate, false otherwise- Returns:
- this context
-
getValidationParameters
Get an instance ofClientTLSValidationParameters.- Returns:
- return the parameters instance, may be null
-
setValidationParameters
@Nonnull public ClientTLSSecurityParametersContext setValidationParameters(@Nullable ClientTLSValidationParameters params) Set an instance ofClientTLSValidationParameters.- Parameters:
params- the parameters instance to set, may be null- Returns:
- this context
-