public interface CertificatesService
Modifier and Type | Method and Description |
---|---|
Enumeration<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
|
Enumeration<String> |
listCACertificatesAliases()
listCACertificatesAliases provides an enumeration of strings representing the different CA certificates
stored in a key store
|
Enumeration<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
|
Enumeration<String> |
listSSLCertificatesAliases()
listSSLCertificatesAliases provides an enumeration of strings representing the different ssl certificates
stored in a key store
|
void |
removeCertificate(String alias)
removeCertificate tries to remove the specified certificate from the key store.
|
Certificate |
returnCertificate(String alias)
returnCertificate returns the certificate corresponding to the specified alias.
|
void |
storeCertificate(Certificate cert,
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(Certificate cert, 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 failedEnumeration<String> listCACertificatesAliases()
Enumeration<String> listSSLCertificatesAliases()
Enumeration<String> listDMCertificatesAliases()
Enumeration<String> listBundleCertificatesAliases()
Certificate returnCertificate(String alias) throws KuraException
alias
- The string used to identify the certificate in a key storeKuraException
void removeCertificate(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 verifiedCopyright © 2016. All Rights Reserved.