@Transactional public class SamlSSOCertificateServiceImpl extends Object implements SamlSSOCertificateServiceInternal
| Constructor and Description |
|---|
SamlSSOCertificateServiceImpl(SAMLTrustDAO samlTrustDAO,
CertificateAndPrivateKeyGenerator generator,
KeyCertificatePairUtilsImpl keyCertificatePairUtils) |
| Modifier and Type | Method and Description |
|---|---|
long |
generateCertificateAndPrivateKey()
Generates and stores new pair of certificate and private key both 4096 bits long.
|
Optional<X509Certificate> |
getCertificate(long certificateId) |
Optional<KeyCertificatePair> |
getKeyCertificatePair(long keyCertificatePairId) |
public SamlSSOCertificateServiceImpl(SAMLTrustDAO samlTrustDAO, CertificateAndPrivateKeyGenerator generator, KeyCertificatePairUtilsImpl keyCertificatePairUtils)
public long generateCertificateAndPrivateKey()
SamlSSOCertificateServicegenerateCertificateAndPrivateKey in interface SamlSSOCertificateServicepublic Optional<X509Certificate> getCertificate(long certificateId)
getCertificate in interface SamlSSOCertificateServicecertificateId - the id of the certificate to fetchpublic Optional<KeyCertificatePair> getKeyCertificatePair(long keyCertificatePairId)
getKeyCertificatePair in interface SamlSSOCertificateServiceInternalkeyCertificatePairId - the id of the key-certificate pair to fetchCopyright © 2023 Atlassian. All rights reserved.