Class AllowedIdSupplierSpiffeIdVerifier
java.lang.Object
io.spiffe.provider.AllowedIdSupplierSpiffeIdVerifier
- All Implemented Interfaces:
SpiffeIdVerifier
-
Constructor Summary
ConstructorsConstructorDescriptionAllowedIdSupplierSpiffeIdVerifier(@NonNull Supplier<Set<io.spiffe.spiffeid.SpiffeId>> allowedSpiffeIdsSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidverify(io.spiffe.spiffeid.SpiffeId spiffeId, X509Certificate[] verifiedChain) Verify that an X509-SVID is acceptable.
-
Constructor Details
-
AllowedIdSupplierSpiffeIdVerifier
-
-
Method Details
-
verify
public void verify(io.spiffe.spiffeid.SpiffeId spiffeId, X509Certificate[] verifiedChain) throws SpiffeVerificationException Description copied from interface:SpiffeIdVerifierVerify that an X509-SVID is acceptable. This method receives the SPIFFE ID of the SVID and the certificate chain.- Specified by:
verifyin interfaceSpiffeIdVerifier- Parameters:
spiffeId- the SPIFFE ID of the SVIDverifiedChain- the certificate chain with the X509-SVID certificate back to an X.509 root for the trust domain.- Throws:
SpiffeVerificationException- if there was an error verifying the SPIFFE ID or it wasn't considered valid.
-