@ProviderType
public interface CertificatesService
Modifier and Type | Method and Description |
---|---|
void |
addCertificate(KuraCertificateEntry certificate)
Add a in a keystore
|
void |
deleteCertificate(java.lang.String id)
Delete the certificate identified by its id
|
KuraCertificateEntry |
getCertificateEntry(java.lang.String id)
Return the identified by its id
|
java.util.List<KuraCertificateEntry> |
getCertificates()
Return the list of the installed
|
java.util.Enumeration<java.lang.String> |
listBundleCertificatesAliases()
Deprecated.
Since 2.2 use
getCertificateEntry(String) |
java.util.Enumeration<java.lang.String> |
listCACertificatesAliases()
Deprecated.
Since 2.2 use
getCertificateEntry(String) |
java.util.Enumeration<java.lang.String> |
listDMCertificatesAliases()
Deprecated.
Since 2.2 use
getCertificateEntry(String) |
java.util.Enumeration<java.lang.String> |
listSSLCertificatesAliases()
Deprecated.
Since 2.2 use
getCertificateEntry(String) |
void |
removeCertificate(java.lang.String alias)
Deprecated.
Since 2.2 use
deleteCertificate(String) |
java.security.cert.Certificate |
returnCertificate(java.lang.String alias)
Deprecated.
Since 2.2 use
getCertificateEntry(String) |
void |
storeCertificate(java.security.cert.Certificate cert,
java.lang.String alias)
Deprecated.
Since 2.2 use
addCertificate(KuraCertificateEntry) |
void |
updateCertificate(KuraCertificateEntry certificate)
Update the in a keystore
|
boolean |
verifySignature(KuraApplicationTopic kuraAppTopic,
KuraPayload kuraPayload)
verifySignature is a method that takes the topic used
to send the message and the signed message to verify the correctness of the signature.
|
@Deprecated void storeCertificate(java.security.cert.Certificate cert, java.lang.String alias) throws KuraException
addCertificate(KuraCertificateEntry)
cert
- The certificate of type Certificate that has to be stored in a key storealias
- A string that will be used to identify the certificate in a key storeKuraException
- raised if the certificate storage operation failed@Deprecated java.util.Enumeration<java.lang.String> listCACertificatesAliases()
getCertificateEntry(String)
@Deprecated java.util.Enumeration<java.lang.String> listSSLCertificatesAliases()
getCertificateEntry(String)
@Deprecated java.util.Enumeration<java.lang.String> listDMCertificatesAliases()
getCertificateEntry(String)
@Deprecated java.util.Enumeration<java.lang.String> listBundleCertificatesAliases()
getCertificateEntry(String)
@Deprecated java.security.cert.Certificate returnCertificate(java.lang.String alias) throws KuraException
getCertificateEntry(String)
alias
- The string used to identify the certificate in a key storeKuraException
@Deprecated void removeCertificate(java.lang.String alias) throws KuraException
deleteCertificate(String)
alias
- The string used to identify the certificate in a key storeKuraException
- raised if the certificate removal operation failedboolean verifySignature(KuraApplicationTopic kuraAppTopic, KuraPayload kuraPayload)
kuraAppTopic
- The application topic part used to send the messagekuraPayload
- The kuraPayload message received and that needs to be verifiedjava.util.List<KuraCertificateEntry> getCertificates() throws KuraException
KuraException
KuraCertificateEntry getCertificateEntry(java.lang.String id) throws KuraException
id
- the id of the certificateKuraException
void updateCertificate(KuraCertificateEntry certificate) throws KuraException
id
- the id of the certificatecertificate
- the new certificateKuraException
void addCertificate(KuraCertificateEntry certificate) throws KuraException
certificate
- the new certificateKuraException
void deleteCertificate(java.lang.String id) throws KuraException
id
- the id of the certificateKuraException