Package org.jivesoftware.util.cert
Class CNCertificateIdentityMapping
java.lang.Object
org.jivesoftware.util.cert.CNCertificateIdentityMapping
- All Implemented Interfaces:
CertificateIdentityMapping
Certificate identity mapping that uses the CommonName as the
identity credentials
- Author:
- Victor Hong
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapIdentity
(X509Certificate certificate) Maps certificate CommonName as identity credentialsname()
Returns the short name of mapping
-
Constructor Details
-
CNCertificateIdentityMapping
public CNCertificateIdentityMapping()
-
-
Method Details
-
mapIdentity
Maps certificate CommonName as identity credentials- Specified by:
mapIdentity
in interfaceCertificateIdentityMapping
- Parameters:
certificate
- the certificates to map- Returns:
- A List of names.
-
name
Returns the short name of mapping- Specified by:
name
in interfaceCertificateIdentityMapping
- Returns:
- The short name of the mapping
-