Package dev.sigstore.fulcio.client
Class FulcioCertificateMatcher
- java.lang.Object
-
- dev.sigstore.fulcio.client.FulcioCertificateMatcher
-
- All Implemented Interfaces:
VerificationOptions.CertificateMatcher,java.util.function.Predicate<java.security.cert.X509Certificate>
@Immutable public abstract class FulcioCertificateMatcher extends java.lang.Object implements VerificationOptions.CertificateMatcher
-
-
Constructor Summary
Constructors Constructor Description FulcioCertificateMatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringMatchergetIssuer()Match against the identity token issuerabstract java.util.Map<java.lang.String,byte[]>getOidBytes()For comparing raw bytes of the full ASN.1 object extension value as defined by EXTENSION in rfc5280abstract java.util.Map<java.lang.String,StringMatcher>getOidDerAsn1Strings()For OIDs with DER encoded ASN.1 string entries.abstract java.util.Map<java.lang.String,StringMatcher>getOidRawStrings()For OIDs with raw string entries.abstract StringMatchergetSubjectAlternativeName()Match against the identity token subject/emailbooleantest(java.security.cert.X509Certificate certificate)java.lang.StringtoString()
-
-
-
Method Detail
-
getIssuer
public abstract StringMatcher getIssuer()
Match against the identity token issuer
-
getSubjectAlternativeName
public abstract StringMatcher getSubjectAlternativeName()
Match against the identity token subject/email
-
getOidRawStrings
public abstract java.util.Map<java.lang.String,StringMatcher> getOidRawStrings()
For OIDs with raw string entries. This is non-standard, but older fulcio OID extensions values use it.
-
getOidDerAsn1Strings
public abstract java.util.Map<java.lang.String,StringMatcher> getOidDerAsn1Strings()
For OIDs with DER encoded ASN.1 string entries. This is the standard for strings values as OID extensions.
-
getOidBytes
public abstract java.util.Map<java.lang.String,byte[]> getOidBytes()
For comparing raw bytes of the full ASN.1 object extension value as defined by EXTENSION in rfc5280The key is the oid string (ex: 1.2.3.4.5) and the value is a raw byte array. Matching is a direct byte array equality check with no mutations on the extension value.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
test
public boolean test(java.security.cert.X509Certificate certificate) throws VerificationOptions.UncheckedCertificateException- Specified by:
testin interfacejava.util.function.Predicate<java.security.cert.X509Certificate>- Specified by:
testin interfaceVerificationOptions.CertificateMatcher- Throws:
VerificationOptions.UncheckedCertificateException
-
-