Package org.keycloak.common.crypto
Interface CertificateUtilsProvider
public interface CertificateUtilsProvider
The Class CertificateUtils provides utility functions for generation of V1 and V3
X509Certificate-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateServicesTestCertificate(String dn, Date startDate, Date expiryDate, KeyPair keyPair, String... certificatePolicyOid) generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject) Generate version 1 self signedX509Certificate..generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject, BigInteger serialNumber) generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject, BigInteger serialNumber, Date validityEndDate) generateV3Certificate(KeyPair keyPair, PrivateKey caPrivateKey, X509Certificate caCert, String subject) Generates version 3X509Certificate.
-
Field Details
-
CRL_DISTRIBUTION_POINTS_OID
- See Also:
-
-
Method Details
-
generateV3Certificate
X509Certificate generateV3Certificate(KeyPair keyPair, PrivateKey caPrivateKey, X509Certificate caCert, String subject) throws Exception Generates version 3X509Certificate.- Parameters:
keyPair- the key paircaPrivateKey- the CA private keycaCert- the CA certificatesubject- the subject name- Returns:
- the x509 certificate
- Throws:
Exception- the exception
-
generateV1SelfSignedCertificate
Generate version 1 self signedX509Certificate..- Parameters:
caKeyPair- the CA key pairsubject- the subject name- Returns:
- the x509 certificate
- Throws:
Exception- the exception
-
generateV1SelfSignedCertificate
X509Certificate generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject, BigInteger serialNumber) -
generateV1SelfSignedCertificate
X509Certificate generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject, BigInteger serialNumber, Date validityEndDate) -
getCertificatePolicyList
- Throws:
GeneralSecurityException
-
getCRLDistributionPoints
- Throws:
IOException
-
createServicesTestCertificate
-