StaticNewAdvancedCertificateVerifier instead.@Deprecated public class StaticCertificateVerifier extends Object implements AdvancedCertificateVerifier
| Constructor and Description |
|---|
StaticCertificateVerifier(X509Certificate[] rootCertificates)
Deprecated.
Create instance of static certificate verifier.
|
| Modifier and Type | Method and Description |
|---|---|
X509Certificate[] |
getAcceptedIssuers()
Deprecated.
Return an array of certificate authority certificates which are trusted
for authenticating peers.
|
CertPath |
verifyCertificate(Boolean clientUsage,
boolean truncateCertificatePath,
CertificateMessage message,
DTLSSession session)
Deprecated.
Validates the X.509 certificate chain provided by the the peer as part of
this message.
|
void |
verifyCertificate(CertificateMessage message,
DTLSSession session)
Deprecated.
Validates the X.509 certificate chain provided by the the peer as part of
this message.
|
public StaticCertificateVerifier(X509Certificate[] rootCertificates)
rootCertificates - array with trusted root certificates, empty array
to trust all.public void verifyCertificate(CertificateMessage message, DTLSSession session) throws HandshakeException
verifyCertificate in interface CertificateVerifiermessage - certificate message to be verifiedsession - dtls session to verifyHandshakeException - if any of the checks failspublic X509Certificate[] getAcceptedIssuers()
CertificateVerifiernull. This causes a failure, please adapt to use an empty array.getAcceptedIssuers in interface CertificateVerifierpublic CertPath verifyCertificate(Boolean clientUsage, boolean truncateCertificatePath, CertificateMessage message, DTLSSession session) throws HandshakeException
AdvancedCertificateVerifierverifyCertificate in interface AdvancedCertificateVerifierclientUsage - 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 validationHandshakeException - if validation failsCopyright © 2023 Eclipse Foundation. All rights reserved.