Package org.jivesoftware.util.cert
Class CNCertificateIdentityMapping
- java.lang.Object
-
- org.jivesoftware.util.cert.CNCertificateIdentityMapping
-
- All Implemented Interfaces:
CertificateIdentityMapping
public class CNCertificateIdentityMapping extends Object implements CertificateIdentityMapping
Certificate identity mapping that uses the CommonName as the identity credentials- Author:
- Victor Hong
-
-
Constructor Summary
Constructors Constructor Description CNCertificateIdentityMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
mapIdentity(X509Certificate certificate)
Maps certificate CommonName as identity credentialsString
name()
Returns the short name of mapping
-
-
-
Method Detail
-
mapIdentity
public List<String> mapIdentity(X509Certificate certificate)
Maps certificate CommonName as identity credentials- Specified by:
mapIdentity
in interfaceCertificateIdentityMapping
- Parameters:
certificate
- the certificates to map- Returns:
- A List of names.
-
name
public String name()
Returns the short name of mapping- Specified by:
name
in interfaceCertificateIdentityMapping
- Returns:
- The short name of the mapping
-
-