Package org.simpleframework.http.core
Class RequestCertificate.Challenge
java.lang.Object
org.simpleframework.http.core.RequestCertificate.Challenge
- All Implemented Interfaces:
CertificateChallenge
- Enclosing class:
RequestCertificate
The
Challenge
provides a basic wrapper around the
challenge provided by the SSL connection. It is used to enforce
the workflow required by HTTP, this workflow requires that the
SSL renegotiation be issued before the response is sent. This
will also throw an exception if a challenge is issued for
a request that already has a client certificate.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Certificate
This is the certificate associated with the SSL connection.private final Channel
This is the channel representing the underlying TCP stream.private final BodyObserver
This is the observer used to keep track of the HTTP transaction. -
Constructor Summary
ConstructorsConstructorDescriptionChallenge
(BodyObserver observer, Entity entity) Constructor for theChallenge
object. -
Method Summary
Modifier and TypeMethodDescriptionThis method will challenge the client for their certificate.This method will challenge the client for their certificate.
-
Field Details
-
observer
This is the observer used to keep track of the HTTP transaction. -
certificate
This is the certificate associated with the SSL connection. -
channel
This is the channel representing the underlying TCP stream.
-
-
Constructor Details
-
Challenge
Constructor for theChallenge
object. This is basically a wrapper for the raw certificate challenge that will enforce some of the workflow required by HTTPS.- Parameters:
observer
- this observer used to track the transactionentity
- this entity containing the request data
-
-
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
- Parameters:
completion
- task to be run on successful challenge- Returns:
- this future containing the original certificate
- Throws:
Exception
-
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:
completion
- task to be run on successful challenge- Returns:
- this future containing the original certificate
- Throws:
Exception
-