Class CertificateSelectionByUsageSubjectQuery
- java.lang.Object
-
- de.xima.fc.certificate.mgmt.selection.CertificateSelectionByUsageSubjectQuery
-
- All Implemented Interfaces:
Serializable
public final class CertificateSelectionByUsageSubjectQuery extends Object implements Serializable
Query for selecting certificates by their usage subject within a defined scope. I.e., by the E-Mail (RFC822) address, URI, DNS name, etc. The interpretation depends on the usage type. This is in contrast toCertificateSelectionBySubjectQuery, which selects by the certificate's subject.- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCertificateSelectionByUsageSubjectQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertificateSelectionByUsageSubjectQuery.Builderbuilder()booleanequals(Object o)BooleangetHasPrivateKey()Optional filter criterion.Set<String>getKeyAlgorithms()Optional filter criterion.CertificateSelectionScopegetScope()Scope within which to select the certificate(s).StringgetUsageSubject()The usage subject of the certificate(s) to be selected.ECertificateUsageTypegetUsageType()The usage type that the certificate(s) must support.inthashCode()booleanisPartialMatch()Optional filter criterion.CertificateSelectionByUsageSubjectQuery.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static CertificateSelectionByUsageSubjectQuery.Builder builder()
-
toBuilder
public CertificateSelectionByUsageSubjectQuery.Builder toBuilder()
-
getScope
public CertificateSelectionScope getScope()
Scope within which to select the certificate(s).
-
getUsageSubject
public String getUsageSubject()
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.
-
getHasPrivateKey
public Boolean getHasPrivateKey()
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.
-
getUsageType
public ECertificateUsageType getUsageType()
The usage type that the certificate(s) must support. Depending on the usage type, the usage subject is interpreted differently.
-
getKeyAlgorithms
public Set<String> getKeyAlgorithms()
Optional filter criterion. Set of key algorithms that the certificate(s) must use. If null or empty, this criterion is ignored.
-
isPartialMatch
public boolean isPartialMatch()
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.
-
-