Package de.xima.fc.certificate.provider
Class CertificateSelectionBySubjectQuery.Builder
- java.lang.Object
-
- de.xima.fc.certificate.provider.CertificateSelectionBySubjectQuery.Builder
-
- Enclosing class:
- CertificateSelectionBySubjectQuery
public static class CertificateSelectionBySubjectQuery.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateSelectionBySubjectQuerybuild()CertificateSelectionBySubjectQuery.BuilderhasPrivateKey(Boolean hasPrivateKey)Optional filter criterion.CertificateSelectionBySubjectQuery.BuilderkeyAlgorithms(Set<String> keyAlgorithms)Optional filter criterion.CertificateSelectionBySubjectQuery.BuilderpartialMatch(boolean partialMatch)Optional filter criterion.CertificateSelectionBySubjectQuery.Builderscope(CertificateSelectionScope scope)Scope within which to select the certificate(s).CertificateSelectionBySubjectQuery.Buildersubject(String subject)Subject of the certificate(s) to be selected.StringtoString()CertificateSelectionBySubjectQuery.BuilderusageTypes(Set<CertificateUsageType> usageTypes)Optional filter criterion.
-
-
-
Method Detail
-
scope
public CertificateSelectionBySubjectQuery.Builder scope(CertificateSelectionScope scope)
Scope within which to select the certificate(s).- Returns:
this.
-
subject
public CertificateSelectionBySubjectQuery.Builder subject(String subject)
Subject of the certificate(s) to be selected.- Returns:
this.
-
hasPrivateKey
public CertificateSelectionBySubjectQuery.Builder hasPrivateKey(Boolean hasPrivateKey)
Optional filter criterion. Whether the certificate(s) must have an associated private key or should not have one. If null, this criterion is ignored. Iftrue, only certificates with an associated private key will be selected. Iffalse, only certificates without an associated private key will be selected.- Returns:
this.
-
usageTypes
public CertificateSelectionBySubjectQuery.Builder usageTypes(Set<CertificateUsageType> usageTypes)
Optional filter criterion. Set of usage types that the certificate(s) must support. If null or empty, this criterion is ignored.- Returns:
this.
-
keyAlgorithms
public CertificateSelectionBySubjectQuery.Builder keyAlgorithms(Set<String> keyAlgorithms)
Optional filter criterion. Set of key algorithms that the certificate(s) must use. If null or empty, this criterion is ignored.- Returns:
this.
-
partialMatch
public CertificateSelectionBySubjectQuery.Builder partialMatch(boolean partialMatch)
Optional filter criterion. Whether to perform a partial match on the subject. If true, certificates whose subjects contain the specified subject as a substring will be matched. If false, only exact matches will be considered.- Returns:
this.
-
build
public CertificateSelectionBySubjectQuery build()
-
-