Package org.keycloak.common.crypto
Interface CertificateUtilsProvider
- 
 public interface CertificateUtilsProviderThe Class CertificateUtils provides utility functions for generation of V1 and V3X509Certificate
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCRL_DISTRIBUTION_POINTS_OID
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description X509CertificatecreateServicesTestCertificate(String dn, Date startDate, Date expiryDate, KeyPair keyPair, String... certificatePolicyOid)X509CertificategenerateV1SelfSignedCertificate(KeyPair caKeyPair, String subject)Generate version 1 self signedX509Certificate..X509CertificategenerateV1SelfSignedCertificate(KeyPair caKeyPair, String subject, BigInteger serialNumber)X509CertificategenerateV3Certificate(KeyPair keyPair, PrivateKey caPrivateKey, X509Certificate caCert, String subject)Generates version 3X509Certificate.List<String>getCertificatePolicyList(X509Certificate cert)List<String>getCRLDistributionPoints(X509Certificate cert)
 
- 
- 
- 
Field Detail- 
CRL_DISTRIBUTION_POINTS_OIDstatic final String CRL_DISTRIBUTION_POINTS_OID - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
generateV3CertificateX509Certificate generateV3Certificate(KeyPair keyPair, PrivateKey caPrivateKey, X509Certificate caCert, String subject) throws Exception Generates version 3X509Certificate.- Parameters:
- keyPair- the key pair
- caPrivateKey- the CA private key
- caCert- the CA certificate
- subject- the subject name
- Returns:
- the x509 certificate
- Throws:
- Exception- the exception
 
 - 
generateV1SelfSignedCertificateX509Certificate generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject) Generate version 1 self signedX509Certificate..- Parameters:
- caKeyPair- the CA key pair
- subject- the subject name
- Returns:
- the x509 certificate
- Throws:
- Exception- the exception
 
 - 
generateV1SelfSignedCertificateX509Certificate generateV1SelfSignedCertificate(KeyPair caKeyPair, String subject, BigInteger serialNumber) 
 - 
getCertificatePolicyListList<String> getCertificatePolicyList(X509Certificate cert) throws GeneralSecurityException - Throws:
- GeneralSecurityException
 
 - 
getCRLDistributionPointsList<String> getCRLDistributionPoints(X509Certificate cert) throws IOException - Throws:
- IOException
 
 
- 
 
-