Class CertificateSelectionBySubjectQuery

  • All Implemented Interfaces:
    Serializable

    public final class CertificateSelectionBySubjectQuery
    extends Object
    implements Serializable
    Query for selecting certificates by their subject within a defined scope.
    Since:
    8.5.0
    Author:
    Norman Lorenz
    See Also:
    Serialized Form
    • Method Detail

      • getSubject

        public String getSubject()
        Subject of the certificate(s) to be selected.
      • 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. If true, only certificates with an associated private key will be selected. If false, only certificates without an associated private key will be selected.
      • getUsageTypes

        public Set<CertificateUsageType> getUsageTypes()
        Optional filter criterion. Set of usage types that the certificate(s) must support. If null or empty, this criterion is ignored.
      • 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 subject. If true, certificates whose subjects contain the specified subject as a substring will be matched. If false, only exact matches will be considered.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object