@ProviderType
public interface CertificatesService
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<java.lang.String> |
listBundleCertificatesAliases()
listBundleCertificatesAliases provides an enumeration of strings representing the different certificates used to
sign
the bundles and that are stored in the device key store
|
java.util.Enumeration<java.lang.String> |
listCACertificatesAliases()
listCACertificatesAliases provides an enumeration of strings representing the different CA certificates
stored in a key store
|
java.util.Enumeration<java.lang.String> |
listDMCertificatesAliases()
listDMCertificatesAliases provides an enumeration of strings representing the different certificates used to
authenticate
the messages coming from the remote platform and stored in the device key store
|
java.util.Enumeration<java.lang.String> |
listSSLCertificatesAliases()
listSSLCertificatesAliases provides an enumeration of strings representing the different ssl certificates
stored in a key store
|
void |
removeCertificate(java.lang.String alias)
removeCertificate tries to remove the specified certificate from the key store.
|
java.security.cert.Certificate |
returnCertificate(java.lang.String alias)
returnCertificate returns the certificate corresponding to the specified alias.
|
void |
storeCertificate(java.security.cert.Certificate cert,
java.lang.String alias)
The storeCertificate interface method receives a certificate and an alias that should be stored in a key store
|
boolean |
verifySignature(KuraTopic kuraTopic,
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.
|
void storeCertificate(java.security.cert.Certificate cert, java.lang.String alias) throws KuraException
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 failedjava.util.Enumeration<java.lang.String> listCACertificatesAliases()
java.util.Enumeration<java.lang.String> listSSLCertificatesAliases()
java.util.Enumeration<java.lang.String> listDMCertificatesAliases()
java.util.Enumeration<java.lang.String> listBundleCertificatesAliases()
java.security.cert.Certificate returnCertificate(java.lang.String alias) throws KuraException
alias
- The string used to identify the certificate in a key storeKuraException
void removeCertificate(java.lang.String alias) throws KuraException
alias
- The string used to identify the certificate in a key storeKuraException
- raised if the certificate removal operation failedboolean verifySignature(KuraTopic kuraTopic, KuraPayload kuraPayload)
kuraTopic
- The topic used to send the messagekuraPayload
- The kuraPayload message received and that needs to be verified