T - The type of object to be handled.public class SMPHttpResponseHandlerSigned<T> extends AbstractSMPResponseHandler<T>
Note: this class is also licensed under Apache 2 license, as it was not part of the original implementation
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_CHECK_CERTIFICATE |
| Constructor and Description |
|---|
SMPHttpResponseHandlerSigned(com.helger.jaxb.GenericJAXBMarshaller<T> aMarshaller) |
| Modifier and Type | Method and Description |
|---|---|
T |
handleEntity(org.apache.http.HttpEntity aEntity)
Handle the response entity and transform it into the actual response
object.
|
boolean |
isCheckCertificate() |
SMPHttpResponseHandlerSigned<T> |
setCheckCertificate(boolean bCheckCertificate)
Check the certificate retrieved from a signed SMP response?
|
handleResponsepublic static final boolean DEFAULT_CHECK_CERTIFICATE
@Nonnull public SMPHttpResponseHandlerSigned<T> setCheckCertificate(boolean bCheckCertificate)
bCheckCertificate - true to enable SMP response checking (on by default) or
false to disable it.public boolean isCheckCertificate()
true if SMP client response certificate checking is
enabled, false if it is disabled. By default this
check is enabled (see DEFAULT_CHECK_CERTIFICATE).@Nonnull public T handleEntity(@Nonnull org.apache.http.HttpEntity aEntity) throws IOException
AbstractSMPResponseHandlerhandleEntity in class AbstractSMPResponseHandler<T>aEntity - The entity to handlenull.IOException - if something goes wrongCopyright © 2015–2017 Philip Helger. All rights reserved.