public class AsyncNewAdvancedCertificateVerifier extends StaticNewAdvancedCertificateVerifier
NewAdvancedCertificateVerifier.
Use 0 or negative delays for test with synchronous blocking
behaviour. And positive delays for test with asynchronous none-blocking
behaviour.| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncNewAdvancedCertificateVerifier.Builder |
LOGGER| Constructor and Description |
|---|
AsyncNewAdvancedCertificateVerifier(X509Certificate[] trustedCertificates,
org.eclipse.californium.elements.auth.RawPublicKeyIdentity[] trustedRPKs,
List<CertificateType> supportedCertificateTypes) |
| Modifier and Type | Method and Description |
|---|---|
static AsyncNewAdvancedCertificateVerifier.Builder |
builder() |
int |
getDelay()
Get delay milliseconds.
|
AsyncNewAdvancedCertificateVerifier |
setDelay(int delayMillis)
Set delay.
|
void |
setResultHandler(HandshakeResultHandler resultHandler)
Set the handler for asynchronous handshake results.
|
void |
shutdown()
Shutdown.
|
CertificateVerificationResult |
verifyCertificate(ConnectionId cid,
ServerNames serverName,
Boolean clientUsage,
boolean truncateCertificatePath,
CertificateMessage message,
DTLSSession session)
Validates the X.509 certificate chain provided by the the peer as part of
the certificate message.
|
getAcceptedIssuers, getSupportedCertificateTypepublic AsyncNewAdvancedCertificateVerifier(X509Certificate[] trustedCertificates, org.eclipse.californium.elements.auth.RawPublicKeyIdentity[] trustedRPKs, List<CertificateType> supportedCertificateTypes)
public AsyncNewAdvancedCertificateVerifier setDelay(int delayMillis)
delayMillis - delay in milliseconds to report result. 0 or
negative delays using synchronous blocking behaviour. Positive
delays using asynchronous none-blocking behaviour.public int getDelay()
0 or negative delays using
synchronous blocking behaviour. Positive delays using
asynchronous none-blocking behaviour.public void shutdown()
public CertificateVerificationResult verifyCertificate(ConnectionId cid, ServerNames serverName, Boolean clientUsage, boolean truncateCertificatePath, CertificateMessage message, DTLSSession session)
NewAdvancedCertificateVerifierverifyCertificate in interface NewAdvancedCertificateVerifierverifyCertificate in class StaticNewAdvancedCertificateVerifiercid - connection IDserverName - indicated server names.clientUsage - indicator to check certificate usage. null
don't check key usage, true, check key usage for
client, false for server.truncateCertificatePath - true truncate certificate path at
a trusted certificate before validation.message - certificate message to be validatedsession - dtls session to be used for validationnull, if result is
provided asynchronous.public void setResultHandler(HandshakeResultHandler resultHandler)
NewAdvancedCertificateVerifierDTLSConnector. Synchronous
implementations may just ignore this using an empty implementation.setResultHandler in interface NewAdvancedCertificateVerifiersetResultHandler in class StaticNewAdvancedCertificateVerifierresultHandler - handler for asynchronous master secret results. This
handler MUST NOT be called from the thread calling
NewAdvancedCertificateVerifier.verifyCertificate(ConnectionId, ServerNames, Boolean, boolean, CertificateMessage, DTLSSession),
instead just return the result there.public static AsyncNewAdvancedCertificateVerifier.Builder builder()
Copyright © 2023 Eclipse Foundation. All rights reserved.