Package org.opendaylight.aaa.cert.impl
Class AaaCertProvider
java.lang.Object
org.opendaylight.aaa.cert.impl.AaaCertProvider
- All Implemented Interfaces:
IAaaCertProvider
AaaCertProvider use to manage the certificates manipulation operations add,
revoke and update.
- Author:
- mserngawy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addCertificateODLKeyStore
(String alias, String certificate) Add certificate to ODL keystore, the certificate should be signed by a CA (Certificate Authority) based on a certificate request generated by the ODL keystore.boolean
addCertificateODLKeyStore
(String storePasswd, String alias, String certificate) Add certificate to ODL keystore, the certificate should be signed by a CA (Certificate Authority) based on a certificate request generated by the ODL keystore.boolean
addCertificateTrustStore
(String alias, String certificate) Add certificate to Trust keystore.boolean
addCertificateTrustStore
(String storePasswd, String alias, String certificate) Add certificate to Trust keystore.boolean
Create the ODL and Trust keystores based on the CtlKeystore and TrustKeystore data.genODLKeyStoreCertificateReq
(boolean withTag) Generate certificate request from the ODL keystore to be signed by a CA.genODLKeyStoreCertificateReq
(String storePasswd, boolean withTag) Generate certificate request from the ODL keystore to be signed by a CA.getCertificateTrustStore
(String aliase, boolean withTag) Get certificate from the Trust keystore.getCertificateTrustStore
(String storePasswd, String aliase, boolean withTag) Get certificate from the Trust keystore.String[]
Get list of of the allowed cipher suites otherwise empty array.Get ODL Keystore as java keystore object.getODLKeyStoreCertificate
(boolean withTag) Get ODL keystore certificate.getODLKeyStoreCertificate
(String storePasswd, boolean withTag) Get ODL keystore certificate.Get the ODL key store Data.String[]
Get list of the supported TLS protocols.Get Trust Keystore as java keystore object.Get the Trust key store Data.
-
Constructor Details
-
AaaCertProvider
-
-
Method Details
-
getTrustKeyStoreInfo
Description copied from interface:IAaaCertProvider
Get the Trust key store Data.- Specified by:
getTrustKeyStoreInfo
in interfaceIAaaCertProvider
- Returns:
- Trust Keystore Object
-
getOdlKeyStoreInfo
Description copied from interface:IAaaCertProvider
Get the ODL key store Data.- Specified by:
getOdlKeyStoreInfo
in interfaceIAaaCertProvider
- Returns:
- Ctl Keystore Object
-
addCertificateODLKeyStore
Description copied from interface:IAaaCertProvider
Add certificate to ODL keystore, the certificate should be signed by a CA (Certificate Authority) based on a certificate request generated by the ODL keystore.- Specified by:
addCertificateODLKeyStore
in interfaceIAaaCertProvider
- Parameters:
storePasswd
- ODL keystore passwordalias
- certificate aliascertificate
- certificate @Nonnull String- Returns:
- true at successful adding certificate
-
addCertificateODLKeyStore
Description copied from interface:IAaaCertProvider
Add certificate to ODL keystore, the certificate should be signed by a CA (Certificate Authority) based on a certificate request generated by the ODL keystore.- Specified by:
addCertificateODLKeyStore
in interfaceIAaaCertProvider
- Parameters:
alias
- certificate aliascertificate
- certificate @Nonnull String- Returns:
- true at successful adding certificate
-
addCertificateTrustStore
Description copied from interface:IAaaCertProvider
Add certificate to Trust keystore.- Specified by:
addCertificateTrustStore
in interfaceIAaaCertProvider
- Parameters:
storePasswd
- ODL keystore passwordalias
- certificate aliascertificate
- certificate @Nonnull String- Returns:
- true at successful adding certificate
-
addCertificateTrustStore
Description copied from interface:IAaaCertProvider
Add certificate to Trust keystore.- Specified by:
addCertificateTrustStore
in interfaceIAaaCertProvider
- Parameters:
alias
- certificate aliascertificate
- certificate @Nonnull String- Returns:
- true if certificate was added successfully
-
createKeyStores
public boolean createKeyStores()Description copied from interface:IAaaCertProvider
Create the ODL and Trust keystores based on the CtlKeystore and TrustKeystore data.- Specified by:
createKeyStores
in interfaceIAaaCertProvider
- Returns:
- true if success
-
genODLKeyStoreCertificateReq
Description copied from interface:IAaaCertProvider
Generate certificate request from the ODL keystore to be signed by a CA.- Specified by:
genODLKeyStoreCertificateReq
in interfaceIAaaCertProvider
- Parameters:
storePasswd
- ODL keystore passwordwithTag
- return the certificate Req string with tag if true- Returns:
- the certificate request
-
genODLKeyStoreCertificateReq
Description copied from interface:IAaaCertProvider
Generate certificate request from the ODL keystore to be signed by a CA.- Specified by:
genODLKeyStoreCertificateReq
in interfaceIAaaCertProvider
- Parameters:
withTag
- return the certificate Req string with tag if true- Returns:
- the certificate request
-
getCertificateTrustStore
Description copied from interface:IAaaCertProvider
Get certificate from the Trust keystore.- Specified by:
getCertificateTrustStore
in interfaceIAaaCertProvider
- Parameters:
storePasswd
- Trust keystore passwordaliase
- the certificate aliaswithTag
- return the certificate string with tag if true- Returns:
- the certificate
-
getCertificateTrustStore
Description copied from interface:IAaaCertProvider
Get certificate from the Trust keystore.- Specified by:
getCertificateTrustStore
in interfaceIAaaCertProvider
- Parameters:
aliase
- the certificate aliaswithTag
- return certificate string with tag if true- Returns:
- the certificate
-
getODLKeyStoreCertificate
Description copied from interface:IAaaCertProvider
Get ODL keystore certificate.- Specified by:
getODLKeyStoreCertificate
in interfaceIAaaCertProvider
- Parameters:
storePasswd
- ODL keystore passwordwithTag
- return certificate string with tag if true- Returns:
- the certificate
-
getODLKeyStoreCertificate
Description copied from interface:IAaaCertProvider
Get ODL keystore certificate.- Specified by:
getODLKeyStoreCertificate
in interfaceIAaaCertProvider
- Parameters:
withTag
- return certificate string with tag if true- Returns:
- the certificate
-
getODLKeyStore
Description copied from interface:IAaaCertProvider
Get ODL Keystore as java keystore object.- Specified by:
getODLKeyStore
in interfaceIAaaCertProvider
- Returns:
- ODL keystore
-
getTrustKeyStore
Description copied from interface:IAaaCertProvider
Get Trust Keystore as java keystore object.- Specified by:
getTrustKeyStore
in interfaceIAaaCertProvider
- Returns:
- Trust keystore
-
getCipherSuites
Description copied from interface:IAaaCertProvider
Get list of of the allowed cipher suites otherwise empty array.- Specified by:
getCipherSuites
in interfaceIAaaCertProvider
- Returns:
- Cipher suites
-
getTlsProtocols
Description copied from interface:IAaaCertProvider
Get list of the supported TLS protocols.- Specified by:
getTlsProtocols
in interfaceIAaaCertProvider
- Returns:
- TLS protocols
-