java.security.cert


1. Certificate Factory

CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate) cf.generateCertificate(new FileInputStream("cert.der"));

2. Certificate Encodings

byte[] encoded = cert.getEncoded();
cert = (X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(new ByteArrayInputStream(encoded));

3. Key Usage

boolean[] keyUsage = cert.getKeyUsage();
if (keyUsage != null) {
    System.out.println("Key usage: " + Arrays.toString(keyUsage));
}

4. Extended Key Usage

List<String> extendedKeyUsage = cert.getExtendedKeyUsage();
if (extendedKeyUsage != null) {
    System.out.println("Extended key usage: " + extendedKeyUsage);
}

5. Subject Alternative Names

List<GeneralName> subjectAltNames = cert.getSubjectAlternativeNames();
if (subjectAltNames != null) {
    System.out.println("Subject alternative names: " + subjectAltNames);
}

6. Issuer and Serial Number

7. Validity Period

8. Signature

9. Public Key

10. CRL Distribution Points

11. Authority Information Access

12. Basic Constraints

13. Trust Anchor

14. Certificate Chain Verification

15. Certificate Revocation

16. OCSP Validation

17. HTTPS Client

18. HTTPS Server

19. LDAP Certificate Retrieval

20. DNSSEC Validation

21. Certificate Chain Builder

22. KeyStore

23. Certificate Encoding

24. Certificate Decoding

25. Certificate Fingerprint

26. Certificate Validity Checking

27. Certificate Expiration Checking

28. Certificate Chain Validation

29. CRL Retrieval

30. CRL Validation

31. OCSP Retrieval

32. OCSP Validation

33. HTTPS Client with Certificate Validation

34. HTTPS Server with Certificate Authentication

35. LDAP Certificate Retrieval

36. DNSSEC Validation

37. Certificate Encoding

38. Certificate Decoding

39. Certificate Fingerprint

40. Certificate Validity Checking

41. Certificate Expiration Checking

42. Certificate Chain Validation

43. CRL Retrieval

44. CRL Validation

45. OCSP Retrieval

46. OCSP Validation

47. HTTPS Client with Certificate Validation

48. HTTPS Server with Certificate Authentication

49. LDAP Certificate Retrieval

50. DNSSEC Validation