Package de.mtg.jzlint.utils
Class ASN1CertificateUtils
java.lang.Object
de.mtg.jzlint.utils.ASN1CertificateUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangeneralizedTimeHasFractionSeconds(org.bouncycastle.asn1.ASN1GeneralizedTime generalizedTime) static booleangeneralizedTimeHasNotSeconds(org.bouncycastle.asn1.ASN1GeneralizedTime generalizedTime) static org.bouncycastle.asn1.ASN1SequencegetCertificateAsSequence(X509Certificate certificate) static org.bouncycastle.asn1.ASN1EncodablegetInnerSignature(X509Certificate certificate) static StringgetInnerSignatureOID(X509Certificate certificate) static org.bouncycastle.asn1.ASN1EncodablegetIssuer(X509Certificate certificate) static org.bouncycastle.asn1.ASN1EncodablegetNotAfter(X509Certificate certificate) static org.bouncycastle.asn1.ASN1EncodablegetNotBefore(X509Certificate certificate) static org.bouncycastle.asn1.ASN1EncodablegetOuterSignature(X509Certificate certificate) static org.bouncycastle.asn1.ASN1SequencegetPublicKey(X509Certificate certificate) static org.bouncycastle.asn1.ASN1SequencegetPublicKeyAlgorithmIdentifier(X509Certificate certificate) static Optional<org.bouncycastle.asn1.ASN1Encodable>getPublicKeyParameters(X509Certificate certificate) static byte[]getPublicKeySubjectPublicKey(X509Certificate certificate) static StringgetPublicKeySubjectPublicKeyBase64Encoded(X509Certificate certificate) static org.bouncycastle.asn1.ASN1IntegergetSerialNumber(X509Certificate certificate) static org.bouncycastle.asn1.ASN1EncodablegetSubject(X509Certificate certificate) static org.bouncycastle.asn1.ASN1SequencegetTBSCertificate(X509Certificate certificate) static org.bouncycastle.asn1.ASN1SequencegetValidity(X509Certificate certificate) static booleanisZulu(org.bouncycastle.asn1.ASN1GeneralizedTime generalizedTime) static booleannotAfterIsGeneralizedTime(X509Certificate certificate) static booleannotAfterIsUTCTime(X509Certificate certificate) static booleannotBeforeIsGeneralizedTime(X509Certificate certificate) static booleannotBeforeIsUTCTime(X509Certificate certificate)
-
Field Details
-
VALIDITY_POSITION_V2_V3
public static final int VALIDITY_POSITION_V2_V3- See Also:
-
SERIAL_NUMBER_POSITION_V2_V3
public static final int SERIAL_NUMBER_POSITION_V2_V3- See Also:
-
SUBJECTPUBLICKEYINFO_POSITION_V2_V3
public static final int SUBJECTPUBLICKEYINFO_POSITION_V2_V3- See Also:
-
SUBJECT_POSITION_V2_V3
public static final int SUBJECT_POSITION_V2_V3- See Also:
-
ISSUER_POSITION_V2_V3
public static final int ISSUER_POSITION_V2_V3- See Also:
-
SIGNATURE_POSITION_V2_V3
public static final int SIGNATURE_POSITION_V2_V3- See Also:
-
TBS_CERTIFICATE_POSITION
public static final int TBS_CERTIFICATE_POSITION- See Also:
-
-
Method Details
-
getCertificateAsSequence
public static org.bouncycastle.asn1.ASN1Sequence getCertificateAsSequence(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getTBSCertificate
public static org.bouncycastle.asn1.ASN1Sequence getTBSCertificate(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getValidity
public static org.bouncycastle.asn1.ASN1Sequence getValidity(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getNotBefore
public static org.bouncycastle.asn1.ASN1Encodable getNotBefore(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getNotAfter
public static org.bouncycastle.asn1.ASN1Encodable getNotAfter(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
notBeforeIsGeneralizedTime
public static boolean notBeforeIsGeneralizedTime(X509Certificate certificate) throws CertificateEncodingException, IOException -
notBeforeIsUTCTime
public static boolean notBeforeIsUTCTime(X509Certificate certificate) throws CertificateEncodingException, IOException -
notAfterIsGeneralizedTime
public static boolean notAfterIsGeneralizedTime(X509Certificate certificate) throws CertificateEncodingException, IOException -
notAfterIsUTCTime
public static boolean notAfterIsUTCTime(X509Certificate certificate) throws CertificateEncodingException, IOException -
generalizedTimeHasFractionSeconds
public static boolean generalizedTimeHasFractionSeconds(org.bouncycastle.asn1.ASN1GeneralizedTime generalizedTime) -
generalizedTimeHasNotSeconds
public static boolean generalizedTimeHasNotSeconds(org.bouncycastle.asn1.ASN1GeneralizedTime generalizedTime) -
isZulu
public static boolean isZulu(org.bouncycastle.asn1.ASN1GeneralizedTime generalizedTime) throws IOException - Throws:
IOException
-
getSerialNumber
public static org.bouncycastle.asn1.ASN1Integer getSerialNumber(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getPublicKey
public static org.bouncycastle.asn1.ASN1Sequence getPublicKey(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getPublicKeyParameters
public static Optional<org.bouncycastle.asn1.ASN1Encodable> getPublicKeyParameters(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getPublicKeyAlgorithmIdentifier
public static org.bouncycastle.asn1.ASN1Sequence getPublicKeyAlgorithmIdentifier(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getPublicKeySubjectPublicKey
public static byte[] getPublicKeySubjectPublicKey(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getPublicKeySubjectPublicKeyBase64Encoded
public static String getPublicKeySubjectPublicKeyBase64Encoded(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getSubject
public static org.bouncycastle.asn1.ASN1Encodable getSubject(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getIssuer
public static org.bouncycastle.asn1.ASN1Encodable getIssuer(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getInnerSignature
public static org.bouncycastle.asn1.ASN1Encodable getInnerSignature(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getInnerSignatureOID
public static String getInnerSignatureOID(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
getOuterSignature
public static org.bouncycastle.asn1.ASN1Encodable getOuterSignature(X509Certificate certificate) throws CertificateEncodingException - Throws:
CertificateEncodingException
-