@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()
SamlSSOCertificateService
generateCertificateAndPrivateKey
in interface SamlSSOCertificateService
public Optional<X509Certificate> getCertificate(long certificateId)
getCertificate
in interface SamlSSOCertificateService
certificateId
- the id of the certificate to fetchpublic Optional<KeyCertificatePair> getKeyCertificatePair(long keyCertificatePairId)
getKeyCertificatePair
in interface SamlSSOCertificateServiceInternal
keyCertificatePairId
- the id of the key-certificate pair to fetchCopyright © 2020 Atlassian. All rights reserved.