Class AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder
- java.lang.Object
-
- com.yubico.webauthn.attestation.AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder
-
- Enclosing class:
- AttestationTrustSource.TrustRootsResult
public static class AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder.Step1
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttestationTrustSource.TrustRootsResultbuild()AttestationTrustSource.TrustRootsResult.TrustRootsResultBuildercertStore(java.security.cert.CertStore certStore)ACertStoreof additional CRLs and/or intermediate certificates to use during certificate path validation, if any.AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilderenableRevocationChecking(boolean enableRevocationChecking)Whether certificate revocation should be checked during certificate path validation.AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilderpolicyTreeValidator(java.util.function.Predicate<java.security.cert.PolicyNode> policyTreeValidator)If non-null, the PolicyQualifiersRejected flag will be set to false during certificate path validation.java.lang.StringtoString()AttestationTrustSource.TrustRootsResult.TrustRootsResultBuildertrustRoots(@NonNull java.util.Set<java.security.cert.X509Certificate> trustRoots)A set of attestation root certificates trusted to certify the relevant attestation statement.
-
-
-
Method Detail
-
trustRoots
public AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder trustRoots(@NonNull @NonNull java.util.Set<java.security.cert.X509Certificate> trustRoots)
A set of attestation root certificates trusted to certify the relevant attestation statement. If the attestation statement is not trusted, or if no trust roots were found, this should be an empty set.
-
certStore
public AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder certStore(java.security.cert.CertStore certStore)
ACertStoreof additional CRLs and/or intermediate certificates to use during certificate path validation, if any. This will not be used iftrustRootsis empty.Any certificates included in this
CertStoreare NOT considered trusted; they will be trusted only if they chain to any of thetrustRoots.The default is
null.
-
enableRevocationChecking
public AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder enableRevocationChecking(boolean enableRevocationChecking)
Whether certificate revocation should be checked during certificate path validation.The default is
true.
-
policyTreeValidator
public AttestationTrustSource.TrustRootsResult.TrustRootsResultBuilder policyTreeValidator(java.util.function.Predicate<java.security.cert.PolicyNode> policyTreeValidator)
If non-null, the PolicyQualifiersRejected flag will be set to false during certificate path validation. SeePKIXParameters.setPolicyQualifiersRejected(boolean).The given
Predicatewill be used to validate the policy tree. ThePredicateshould returntrueif the policy tree is acceptable, andfalseotherwise.Depending on your
"PKIX"JCA provider configuration, this may be required if any certificate in the certificate path contains a certificate policies extension marked critical. If this is not set, then such a certificate will be rejected by the certificate path validator from the default provider.Consult the Java PKI Programmer's Guide for how to use the
PolicyNodeargument of thePredicate.The default is
null.
-
build
public AttestationTrustSource.TrustRootsResult build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-