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>
public final class ClientTLSSecurityParametersContext extends BaseContext
Messaging context implementation for holding parameters related to validating client TLSX509Credentialinstances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
-
Field Summary
Fields Modifier and Type Field Description private booleanevaluateClientCertificateFlag indicating whether to evaluate the certificate presented by the TLS client.private ClientTLSValidationParametersvalidationParametersAClientTLSValidationParametersinstance.
-
Constructor Summary
Constructors Constructor Description ClientTLSSecurityParametersContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientTLSValidationParametersgetValidationParameters()Get an instance ofClientTLSValidationParameters.booleanisEvaluateClientCertificate()Determine whether to evaluate the certificate presented by the TLS client.voidsetEvaluateClientCertificate(boolean flag)Set whether to evaluate the certificate presented by the TLS client.voidsetValidationParameters(ClientTLSValidationParameters params)Set an instance ofClientTLSValidationParameters.-
Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
validationParameters
@Nullable private ClientTLSValidationParameters validationParameters
AClientTLSValidationParametersinstance.
-
evaluateClientCertificate
private boolean evaluateClientCertificate
Flag indicating whether to evaluate the certificate presented by the TLS client.
-
-
Method Detail
-
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
public void setEvaluateClientCertificate(boolean flag)
Set whether to evaluate the certificate presented by the TLS client.Defaults to:
true- Parameters:
flag- true if should evaluate, false otherwise
-
getValidationParameters
@Nullable public ClientTLSValidationParameters getValidationParameters()
Get an instance ofClientTLSValidationParameters.- Returns:
- return the parameters instance, may be null
-
setValidationParameters
public void setValidationParameters(@Nullable ClientTLSValidationParameters params)Set an instance ofClientTLSValidationParameters.- Parameters:
params- the parameters instance to set, may be null
-
-