Class CertificateSelectionByUsageSubjectQuery.Builder
- java.lang.Object
-
- de.xima.fc.certificate.mgmt.selection.CertificateSelectionByUsageSubjectQuery.Builder
-
- Enclosing class:
- CertificateSelectionByUsageSubjectQuery
public static class CertificateSelectionByUsageSubjectQuery.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateSelectionByUsageSubjectQuerybuild()CertificateSelectionByUsageSubjectQuery.BuilderhasPrivateKey(Boolean hasPrivateKey)Optional filter criterion.CertificateSelectionByUsageSubjectQuery.BuilderkeyAlgorithms(Set<String> keyAlgorithms)Optional filter criterion.CertificateSelectionByUsageSubjectQuery.BuilderpartialMatch(boolean partialMatch)Optional filter criterion.CertificateSelectionByUsageSubjectQuery.Builderscope(CertificateSelectionScope scope)Scope within which to select the certificate(s).StringtoString()CertificateSelectionByUsageSubjectQuery.BuilderusageSubject(String usageSubject)The usage subject of the certificate(s) to be selected.CertificateSelectionByUsageSubjectQuery.BuilderusageType(ECertificateUsageType usageType)The usage type that the certificate(s) must support.
-
-
-
Method Detail
-
scope
public CertificateSelectionByUsageSubjectQuery.Builder scope(CertificateSelectionScope scope)
Scope within which to select the certificate(s).- Returns:
this.
-
usageSubject
public CertificateSelectionByUsageSubjectQuery.Builder usageSubject(String usageSubject)
The usage subject of the certificate(s) to be selected. I.e. the E-Mail (RFC822) address, URI, DNS name, etc. The interpretation depends on the usage type.- Returns:
this.
-
hasPrivateKey
public CertificateSelectionByUsageSubjectQuery.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.
-
usageType
public CertificateSelectionByUsageSubjectQuery.Builder usageType(ECertificateUsageType usageType)
The usage type that the certificate(s) must support. Depending on the usage type, the usage subject is interpreted differently.- Returns:
this.
-
keyAlgorithms
public CertificateSelectionByUsageSubjectQuery.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 CertificateSelectionByUsageSubjectQuery.Builder partialMatch(boolean partialMatch)
Optional filter criterion. Whether to perform a partial match on the usage subject. If true, certificates whose usage subjects contain the specified usage subject as a substring will be matched. If false, only exact matches will be considered.- Returns:
this.
-
build
public CertificateSelectionByUsageSubjectQuery build()
-
-