Class AaaCertProvider

java.lang.Object
org.opendaylight.aaa.cert.impl.AaaCertProvider
All Implemented Interfaces:
IAaaCertProvider

public class AaaCertProvider extends Object implements IAaaCertProvider
AaaCertProvider use to manage the certificates manipulation operations add, revoke and update.
Author:
mserngawy
  • Constructor Details

  • Method Details

    • getTrustKeyStoreInfo

      public TrustKeystore getTrustKeyStoreInfo()
      Description copied from interface: IAaaCertProvider
      Get the Trust key store Data.
      Specified by:
      getTrustKeyStoreInfo in interface IAaaCertProvider
      Returns:
      Trust Keystore Object
    • getOdlKeyStoreInfo

      public CtlKeystore getOdlKeyStoreInfo()
      Description copied from interface: IAaaCertProvider
      Get the ODL key store Data.
      Specified by:
      getOdlKeyStoreInfo in interface IAaaCertProvider
      Returns:
      Ctl Keystore Object
    • addCertificateODLKeyStore

      public boolean addCertificateODLKeyStore(String storePasswd, String alias, String certificate)
      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 interface IAaaCertProvider
      Parameters:
      storePasswd - ODL keystore password
      alias - certificate alias
      certificate - certificate @Nonnull String
      Returns:
      true at successful adding certificate
    • addCertificateODLKeyStore

      public boolean addCertificateODLKeyStore(String alias, String certificate)
      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 interface IAaaCertProvider
      Parameters:
      alias - certificate alias
      certificate - certificate @Nonnull String
      Returns:
      true at successful adding certificate
    • addCertificateTrustStore

      public boolean addCertificateTrustStore(String storePasswd, String alias, String certificate)
      Description copied from interface: IAaaCertProvider
      Add certificate to Trust keystore.
      Specified by:
      addCertificateTrustStore in interface IAaaCertProvider
      Parameters:
      storePasswd - ODL keystore password
      alias - certificate alias
      certificate - certificate @Nonnull String
      Returns:
      true at successful adding certificate
    • addCertificateTrustStore

      public boolean addCertificateTrustStore(String alias, String certificate)
      Description copied from interface: IAaaCertProvider
      Add certificate to Trust keystore.
      Specified by:
      addCertificateTrustStore in interface IAaaCertProvider
      Parameters:
      alias - certificate alias
      certificate - 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 interface IAaaCertProvider
      Returns:
      true if success
    • genODLKeyStoreCertificateReq

      public String genODLKeyStoreCertificateReq(String storePasswd, boolean withTag)
      Description copied from interface: IAaaCertProvider
      Generate certificate request from the ODL keystore to be signed by a CA.
      Specified by:
      genODLKeyStoreCertificateReq in interface IAaaCertProvider
      Parameters:
      storePasswd - ODL keystore password
      withTag - return the certificate Req string with tag if true
      Returns:
      the certificate request
    • genODLKeyStoreCertificateReq

      public String genODLKeyStoreCertificateReq(boolean withTag)
      Description copied from interface: IAaaCertProvider
      Generate certificate request from the ODL keystore to be signed by a CA.
      Specified by:
      genODLKeyStoreCertificateReq in interface IAaaCertProvider
      Parameters:
      withTag - return the certificate Req string with tag if true
      Returns:
      the certificate request
    • getCertificateTrustStore

      public String getCertificateTrustStore(String storePasswd, String aliase, boolean withTag)
      Description copied from interface: IAaaCertProvider
      Get certificate from the Trust keystore.
      Specified by:
      getCertificateTrustStore in interface IAaaCertProvider
      Parameters:
      storePasswd - Trust keystore password
      aliase - the certificate alias
      withTag - return the certificate string with tag if true
      Returns:
      the certificate
    • getCertificateTrustStore

      public String getCertificateTrustStore(String aliase, boolean withTag)
      Description copied from interface: IAaaCertProvider
      Get certificate from the Trust keystore.
      Specified by:
      getCertificateTrustStore in interface IAaaCertProvider
      Parameters:
      aliase - the certificate alias
      withTag - return certificate string with tag if true
      Returns:
      the certificate
    • getODLKeyStoreCertificate

      public String getODLKeyStoreCertificate(String storePasswd, boolean withTag)
      Description copied from interface: IAaaCertProvider
      Get ODL keystore certificate.
      Specified by:
      getODLKeyStoreCertificate in interface IAaaCertProvider
      Parameters:
      storePasswd - ODL keystore password
      withTag - return certificate string with tag if true
      Returns:
      the certificate
    • getODLKeyStoreCertificate

      public String getODLKeyStoreCertificate(boolean withTag)
      Description copied from interface: IAaaCertProvider
      Get ODL keystore certificate.
      Specified by:
      getODLKeyStoreCertificate in interface IAaaCertProvider
      Parameters:
      withTag - return certificate string with tag if true
      Returns:
      the certificate
    • getODLKeyStore

      public KeyStore getODLKeyStore()
      Description copied from interface: IAaaCertProvider
      Get ODL Keystore as java keystore object.
      Specified by:
      getODLKeyStore in interface IAaaCertProvider
      Returns:
      ODL keystore
    • getTrustKeyStore

      public KeyStore getTrustKeyStore()
      Description copied from interface: IAaaCertProvider
      Get Trust Keystore as java keystore object.
      Specified by:
      getTrustKeyStore in interface IAaaCertProvider
      Returns:
      Trust keystore
    • getCipherSuites

      public String[] getCipherSuites()
      Description copied from interface: IAaaCertProvider
      Get list of of the allowed cipher suites otherwise empty array.
      Specified by:
      getCipherSuites in interface IAaaCertProvider
      Returns:
      Cipher suites
    • getTlsProtocols

      public String[] getTlsProtocols()
      Description copied from interface: IAaaCertProvider
      Get list of the supported TLS protocols.
      Specified by:
      getTlsProtocols in interface IAaaCertProvider
      Returns:
      TLS protocols