Class CertificateUserDetailsAdapter
java.lang.Object
de.xima.fc.certificate.gui.internal.CertificateUserDetailsAdapter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface for adapting certificate details to a format that can be used to identify users by their email addresses and common name. -
Method Summary
Modifier and TypeMethodDescriptionforCommonName(String commonName) Creates an adapter for the given common name, which can be used to search for users in the system.forDetails(X509CertificateDetails details) Creates an adapter for the given X509CertificateDetails, which can be used to search for users in the system.Creates an adapter for the given email address, which can be used to search for users in the system.
-
Method Details
-
forCommonName
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
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
-