Class CertificateUserDetailsAdapter
- java.lang.Object
-
- de.xima.fc.certificate.gui.internal.CertificateUserDetailsAdapter
-
public final class CertificateUserDetailsAdapter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCertificateUserDetailsAdapter.AdapterAn interface for adapting certificate details to a format that can be used to identify users by their email addresses and common name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CertificateUserDetailsAdapter.AdapterforCommonName(String commonName)Creates an adapter for the given common name, which can be used to search for users in the system.static CertificateUserDetailsAdapter.AdapterforDetails(X509CertificateDetails details)Creates an adapter for the given X509CertificateDetails, which can be used to search for users in the system.static CertificateUserDetailsAdapter.AdapterforEmail(String email)Creates an adapter for the given email address, which can be used to search for users in the system.
-
-
-
Method Detail
-
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
public static CertificateUserDetailsAdapter.Adapter forDetails(X509CertificateDetails details)
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
-
-