@ProviderType
public interface UserCertificateMapping
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.security.cert.X509Certificate> |
listCertificates(ResourceResolver resolver,
java.lang.String userId)
List the accessible certificates mapped to the given user.
|
void |
mapCertificate(ResourceResolver resolver,
java.lang.String userId,
java.security.cert.X509Certificate certificate)
Maps a certificate to a user by adding it to the global trust store using an autogenerated alias based on the given user ID and a timestamp.
|
void |
unmapCertificate(ResourceResolver resolver,
java.lang.String alias)
Unmaps a certificate by removing the certificate from the global trust-store.
|
void mapCertificate(ResourceResolver resolver, java.lang.String userId, java.security.cert.X509Certificate certificate) throws UserCertificateMappingException
resolver
- the resource resolver to use for accessing the global trust-storeuserId
- the ID of the user to map the certificate tocertificate
- the certificate to mapUserCertificateMappingException
- if the mapping fails for various reasons like the given user doesn't exist or trust-store access deniedvoid unmapCertificate(ResourceResolver resolver, java.lang.String alias) throws UserCertificateMappingException
resolver
- the resource resolver to use for accessing the global trust-storealias
- the alias of the certificate to removeUserCertificateMappingException
- if the certificate removal fails for various reasons like the given alias doesn't exist or trust-store access deniedjava.util.Map<java.lang.String,java.security.cert.X509Certificate> listCertificates(ResourceResolver resolver, java.lang.String userId) throws UserCertificateMappingException
userId
- the ID of the user who's certificates are listedUserCertificateMappingException
- if the listing fails for various reasons like the given user doesn't exist or trust-store access deniedCopyright © 2010 - 2020 Adobe. All Rights Reserved