Package org.simpleframework.transport
Class NegotiationState.Challenge
java.lang.Object
org.simpleframework.transport.NegotiationState.Challenge
- All Implemented Interfaces:
CertificateChallenge
- Enclosing class:
NegotiationState
The
Challenge
object is used to enable the server
to challenge for the client X509 certificate if desired. It
performs the challenge by performing an SSL renegotiation to
request that the client sends the-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will challenge the client for their certificate.This method will challenge the client for their certificate.private void
This method will challenge the client for their certificate.
-
Field Details
-
engine
This is the SSL engine that is used to begin the handshake. -
trace
This is used to trace the certificate challenge request.
-
-
Constructor Details
-
Challenge
Constructor for theChallenge
object. This can be used to challenge the client for their X509 certificate. It does this by performing an SSL renegotiation on the existing TCP connection.- Parameters:
socket
- this is the TCP connection to the client
-
-
Method Details
-
challenge
This method will challenge the client for their certificate. It does so by performing an SSL renegotiation. Successful completion of the SSL renegotiation results in the client providing their certificate, and execution of the task.- Specified by:
challenge
in interfaceCertificateChallenge
- Returns:
- this future containing the original certificate
-
challenge
This method will challenge the client for their certificate. It does so by performing an SSL renegotiation. Successful completion of the SSL renegotiation results in the client providing their certificate, and execution of the task.- Specified by:
challenge
in interfaceCertificateChallenge
- Parameters:
task
- task to be run on successful challengecompletion
- task to be run on successful challenge- Returns:
- this future containing the original certificate
-
resume
This method will challenge the client for their certificate. It does so by performing an SSL renegotiation. Successful completion of the SSL renegotiation results in the client providing their certificate, and execution of the task.- Parameters:
completion
- task to be run on successful challenge
-