public class RetryJsonSignatureVerificationProcessor extends Object implements com.vmware.vapi.protocol.RequestProcessor
JsonSignatureVerificationProcessor that will retry the processing
of the request in case an InvalidTokenException is received during the SAML token
validationStsTrustChain.getStsTrustChain()
method when an StsTrustChain is provided in the constructor or by calling the
RefreshableCache.refresh() when a RefreshableCache is provided directlyJsonSignatureVerificationProcessor}| Constructor and Description |
|---|
RetryJsonSignatureVerificationProcessor(RefreshableCache<X509Certificate[]> trustChainCache) |
RetryJsonSignatureVerificationProcessor(com.vmware.vapi.dsig.json.StsTrustChain trustChain,
long retryDelayMs) |
RetryJsonSignatureVerificationProcessor(com.vmware.vapi.dsig.json.StsTrustChain trustChain,
long retryDelayMs,
long clockToleranceSec) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
process(byte[] requestBytes,
Map<String,Object> metadata,
com.vmware.vapi.protocol.RequestProcessor.Request request) |
public RetryJsonSignatureVerificationProcessor(com.vmware.vapi.dsig.json.StsTrustChain trustChain,
long retryDelayMs)
trustChain - The STS trusted certificates. The method
StsTrustChain.getStsTrustChain() will be called once during initialization and
subsequently whenever the certificates need to be refreshedretryDelayMs - Minimum period of time in milliseconds between refreshes of the STS trust
chainpublic RetryJsonSignatureVerificationProcessor(com.vmware.vapi.dsig.json.StsTrustChain trustChain,
long retryDelayMs,
long clockToleranceSec)
trustChain - The STS trusted certificates. The method
StsTrustChain.getStsTrustChain() will be called once during initialization and
subsequently whenever the certificates need to be refreshedretryDelayMs - Minimum period of time in milliseconds between refreshes of the STS trust
chainclockToleranceSec - The allowed time discrepancy between the client and the server. Must
not be negativepublic RetryJsonSignatureVerificationProcessor(RefreshableCache<X509Certificate[]> trustChainCache)
trustChainCache - A refreshable cache that provides the trusted root certificates.
Whenever a new trust chain is needed, the refresh method will be calledCopyright © 2022. All rights reserved.