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
ConstructorsConstructorDescriptionSamlSSOCertificateServiceImpl(SAMLTrustDAO samlTrustDAO, CertificateAndPrivateKeyGenerator generator, KeyCertificatePairUtilsImpl keyCertificatePairUtils) -
Method Summary
Modifier and TypeMethodDescriptionlongGenerates 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:SamlSSOCertificateServiceGenerates and stores new pair of certificate and private key both 4096 bits long. RSA algorithm is used to generate this pair.- Specified by:
generateCertificateAndPrivateKeyin interfaceSamlSSOCertificateService- Returns:
- id of the newly-generated certificate and private key
-
getCertificate
- Specified by:
getCertificatein interfaceSamlSSOCertificateService- Parameters:
certificateId- the id of the certificate to fetch- Returns:
- certificate based on passed id if found, none otherwise
-
getKeyCertificatePair
- Specified by:
getKeyCertificatePairin interfaceSamlSSOCertificateServiceInternal- Parameters:
keyCertificatePairId- the id of the key-certificate pair to fetch- Returns:
- key-certificate pair based on passed keyCertificatePairId if found, none otherwise
-