Interface SamlSSOCertificateService

All Known Subinterfaces:
SamlSSOCertificateServiceInternal
All Known Implementing Classes:
SamlSSOCertificateServiceImpl

public interface SamlSSOCertificateService
A service for managing pairs of certificate and private key used in SSO.
Since:
3.4.0
  • Method Details

    • generateCertificateAndPrivateKey

      long generateCertificateAndPrivateKey()
      Generates and stores new pair of certificate and private key both 4096 bits long. RSA algorithm is used to generate this pair.
      Returns:
      id of the newly-generated certificate and private key
    • getCertificate

      Optional<X509Certificate> getCertificate(long certificateId)
      Parameters:
      certificateId - the id of the certificate to fetch
      Returns:
      certificate based on passed id if found, none otherwise