Class CertificateUserDetailsAdapter

java.lang.Object
de.xima.fc.certificate.gui.internal.CertificateUserDetailsAdapter

public final class CertificateUserDetailsAdapter extends Object
  • Method Details

    • forCommonName

      public static CertificateUserDetailsAdapter.Adapter forCommonName(String commonName)
      Creates an adapter for the given common name, which can be used to search for users in the system.
      Parameters:
      commonName - the common name to adapt
      Returns:
      an ICertificateUserDetailsAdapter instance
      Throws:
      IllegalArgumentException - if the common name is null or blank
    • forDetails

      Creates an adapter for the given X509CertificateDetails, which can be used to search for users in the system.
      Parameters:
      details - the X509CertificateDetails to adapt
      Returns:
      an ICertificateUserDetailsAdapter instance
      Throws:
      IllegalArgumentException - if the details are null
    • forEmail

      public static CertificateUserDetailsAdapter.Adapter forEmail(String email)
      Creates an adapter for the given email address, which can be used to search for users in the system.
      Parameters:
      email - the email address to adapt
      Returns:
      an ICertificateUserDetailsAdapter instance
      Throws:
      IllegalArgumentException - if the email is null or blank