public class CertificateStoreImpl extends AbstractTool implements org.iqtig.pseudonymisierung.api.CertificateStore
AbstractTool
Constructor and Description |
---|
CertificateStoreImpl(Path registrationDir,
org.iqtig.pseudonymisierung.beans.CertificateIdentity certificateIdentity)
Erzeugt eine CertificateStore-Instanz für öffentliche Schlüssel.
|
CertificateStoreImpl(Path registrationDir,
org.iqtig.pseudonymisierung.beans.CertificateIdentity certificateIdentity,
String password)
Erzeugt eine CertificateStore-Instanz für private und öffentliche Schlüssel.
|
CertificateStoreImpl(Properties properties)
Erzeugt eine CertificateStore-Instanz
Die Übergebenen Properties müssen folgende Schlüssel-Wert-Paare enthalten: certificate.datacollectionpoint = Die String-Repräsentation des entsprechenden DataCollectionPoint certificate.stateCode = Die String-Repräsentation des entsprechenden StateCode registration.dir = Das Schlüssel-Registrierungsverzeichnis Um auch private Schlüssel über diesen CertificateStore zu verwalten wird das Passwort der Zertifikate benötigt: certificate.password = Das Passwort der Zertifikate mit den privaten Schlüsseln |
Modifier and Type | Method and Description |
---|---|
org.iqtig.pseudonymisierung.beans.CertificateIdentity |
getCertificateIdentity() |
PrivateKey |
getPrivateKey() |
PrivateKey |
getPrivateKey(Calendar date) |
PrivateKey |
getPrivateKey(Date date) |
X509Certificate |
getPublicCertificate() |
X509Certificate |
getPublicCertificate(Calendar date) |
X509Certificate |
getPublicCertificate(Date date) |
validateProperties, validatePropertiesOr
public CertificateStoreImpl(Path registrationDir, org.iqtig.pseudonymisierung.beans.CertificateIdentity certificateIdentity, String password) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
public CertificateStoreImpl(Path registrationDir, org.iqtig.pseudonymisierung.beans.CertificateIdentity certificateIdentity) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
registrationDir
- Path
certificateIdentity
- CertificateIdentity
org.iqtig.pseudonymisierung.exception.PseudonymisationException
- im Fehlerfallpublic CertificateStoreImpl(Properties properties) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
DataCollectionPoint
StateCode
properties
- Properties
org.iqtig.pseudonymisierung.exception.PseudonymisationException
- im Fehlerfallpublic PrivateKey getPrivateKey() throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
getPrivateKey
in interface org.iqtig.pseudonymisierung.api.CertificateStore
org.iqtig.pseudonymisierung.exception.PseudonymisationException
public PrivateKey getPrivateKey(Date date) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
getPrivateKey
in interface org.iqtig.pseudonymisierung.api.CertificateStore
org.iqtig.pseudonymisierung.exception.PseudonymisationException
public PrivateKey getPrivateKey(Calendar date) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
getPrivateKey
in interface org.iqtig.pseudonymisierung.api.CertificateStore
org.iqtig.pseudonymisierung.exception.PseudonymisationException
public X509Certificate getPublicCertificate() throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
getPublicCertificate
in interface org.iqtig.pseudonymisierung.api.CertificateStore
org.iqtig.pseudonymisierung.exception.PseudonymisationException
public X509Certificate getPublicCertificate(Date date) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
getPublicCertificate
in interface org.iqtig.pseudonymisierung.api.CertificateStore
org.iqtig.pseudonymisierung.exception.PseudonymisationException
public X509Certificate getPublicCertificate(Calendar date) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
getPublicCertificate
in interface org.iqtig.pseudonymisierung.api.CertificateStore
org.iqtig.pseudonymisierung.exception.PseudonymisationException
public org.iqtig.pseudonymisierung.beans.CertificateIdentity getCertificateIdentity()
getCertificateIdentity
in interface org.iqtig.pseudonymisierung.api.CertificateStore
Copyright © 2018. All rights reserved.