Package com.atlassian.crowd.manager.sso
Class SamlSSOCertificateServiceImpl
java.lang.Object
com.atlassian.crowd.manager.sso.SamlSSOCertificateServiceImpl
- All Implemented Interfaces:
SamlSSOCertificateService
,SamlSSOCertificateServiceInternal
@Transactional
public class SamlSSOCertificateServiceImpl
extends Object
implements SamlSSOCertificateServiceInternal
-
Constructor Summary
ConstructorDescriptionSamlSSOCertificateServiceImpl
(SAMLTrustDAO samlTrustDAO, CertificateAndPrivateKeyGenerator generator, KeyCertificatePairUtilsImpl keyCertificatePairUtils) -
Method Summary
Modifier and TypeMethodDescriptionlong
Generates and stores new pair of certificate and private key both 4096 bits long.getCertificate
(long certificateId) getKeyCertificatePair
(long keyCertificatePairId)
-
Constructor Details
-
SamlSSOCertificateServiceImpl
public SamlSSOCertificateServiceImpl(SAMLTrustDAO samlTrustDAO, CertificateAndPrivateKeyGenerator generator, KeyCertificatePairUtilsImpl keyCertificatePairUtils)
-
-
Method Details
-
generateCertificateAndPrivateKey
public long generateCertificateAndPrivateKey()Description copied from interface:SamlSSOCertificateService
Generates and stores new pair of certificate and private key both 4096 bits long. RSA algorithm is used to generate this pair.- Specified by:
generateCertificateAndPrivateKey
in interfaceSamlSSOCertificateService
- Returns:
- id of the newly-generated certificate and private key
-
getCertificate
- Specified by:
getCertificate
in interfaceSamlSSOCertificateService
- Parameters:
certificateId
- the id of the certificate to fetch- Returns:
- certificate based on passed id if found, none otherwise
-
getKeyCertificatePair
- Specified by:
getKeyCertificatePair
in interfaceSamlSSOCertificateServiceInternal
- Parameters:
keyCertificatePairId
- the id of the key-certificate pair to fetch- Returns:
- key-certificate pair based on passed keyCertificatePairId if found, none otherwise
-