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 to CertificateSelectionBySubjectQuery, which selects by the certificate's subject.
Since:
8.5.0
Author:
Norman Lorenz
See Also:
  • Method Details

    • 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.
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object