public interface PKIManagement
Currently it is read only and implementation is based on FS stored data. In future it will be enhanced to support DB-stored data with possibility to add/remove contents.
Single exception are certificates. It is possible to managed (add/remove) them at runtime, however the current implementation is in memory only, i.e. all changes are lost after restart. Again this will be refactored in future.
Modifier and Type | Method and Description |
---|---|
void |
addCertificate(String name,
X509Certificate updated)
Adds a new certificate
|
X509Certificate |
getCertificate(String name) |
Set<String> |
getCertificateNames() |
eu.emi.security.authn.x509.X509Credential |
getCredential(String name) |
Set<String> |
getCredentialNames() |
eu.unicore.security.canl.IAuthnAndTrustConfiguration |
getMainAuthnAndTrust() |
eu.emi.security.authn.x509.X509CertChainValidatorExt |
getValidator(String name) |
Set<String> |
getValidatorNames() |
void |
removeCertificate(String name)
Removes a given certificate
|
void |
updateCertificate(String name,
X509Certificate updated)
Updates a given certificate
|
Set<String> getCredentialNames() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
eu.emi.security.authn.x509.X509Credential getCredential(String name) throws pl.edu.icm.unity.exceptions.EngineException
name
- pl.edu.icm.unity.exceptions.EngineException
Set<String> getValidatorNames() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
eu.emi.security.authn.x509.X509CertChainValidatorExt getValidator(String name) throws pl.edu.icm.unity.exceptions.EngineException
name
- pl.edu.icm.unity.exceptions.EngineException
eu.unicore.security.canl.IAuthnAndTrustConfiguration getMainAuthnAndTrust()
IAuthnAndTrustConfiguration
of the main server.Set<String> getCertificateNames() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
X509Certificate getCertificate(String name) throws pl.edu.icm.unity.exceptions.EngineException
name
- pl.edu.icm.unity.exceptions.EngineException
void updateCertificate(String name, X509Certificate updated) throws pl.edu.icm.unity.exceptions.EngineException
name
- updated
- pl.edu.icm.unity.exceptions.EngineException
void removeCertificate(String name) throws pl.edu.icm.unity.exceptions.EngineException
name
- pl.edu.icm.unity.exceptions.EngineException
void addCertificate(String name, X509Certificate updated) throws pl.edu.icm.unity.exceptions.EngineException
name
- updated
- pl.edu.icm.unity.exceptions.EngineException
Copyright © 2018 Unity. All rights reserved.