X509CRL based on BoringSSL.
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final Date | |
| private final Date |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | finalize()
Overrides java. |
| pack-priv static List | |
| pack-priv static List | |
| pack-priv static OpenSSLX509CRL | |
| pack-priv static OpenSSLX509CRL | |
| public Set | getCriticalExtensionOIDs()
Implements java. |
| public byte[] | getEncoded()
Implements abstract java. |
| public byte[] | getExtensionValue(String
the Object Identifier value for the extension. oid)Implements java. oid
String.
|
| public Principal | getIssuerDN()
Implements abstract java. issuer (issuer distinguished name) value from
the CRL.
|
| public X500Principal | getIssuerX500Principal()
Overrides java. X500Principal.
|
| public Date | getNextUpdate()
Implements abstract java. nextUpdate date from the CRL.
|
| public Set | getNonCriticalExtensionOIDs()
Implements java. |
| public X509CRLEntry | getRevokedCertificate(BigInteger
the serial number of the certificate for which a CRL entry
is to be looked up serialNumber)Implements abstract java. |
| public X509CRLEntry | getRevokedCertificate(X509Certificate
the certificate for which a CRL entry is to be looked
up certificate)
Get the CRL entry, if any, for the given certificate.
|
| public Set | getRevokedCertificates()
Implements abstract java. |
| public String | getSigAlgName()
Implements abstract java. |
| public String | getSigAlgOID()
Implements abstract java. |
| public byte[] | getSigAlgParams()
Implements abstract java. |
| public byte[] | getSignature()
Implements abstract java. signature value (the raw signature bits) from
the CRL.
|
| public byte[] | getTBSCertList()
Implements abstract java. tbsCertList from this CRL.
|
| public Date | getThisUpdate()
Implements abstract java. thisUpdate date from the CRL.
|
| public int | getVersion()
Implements abstract java. version (version number) value from the CRL.
|
| public boolean | hasUnsupportedCriticalExtension()
Implements java. |
| public boolean | isRevoked(Certificate
the certificate to check for. cert)Implements abstract java. |
| pack-priv static Date | |
| public String | toString()
Implements abstract java. |
| public void | verify(PublicKey
the PublicKey used to carry out the verification. key)Implements abstract java. |
| public void | verify(PublicKey
the PublicKey used to carry out the verification. key, String the name of the signature provider. sigProvider)Implements abstract java. |
| private void | |
| private void |
| mContext | back to summary |
|---|---|
| private final long mContext | |
| nextUpdate | back to summary |
|---|---|
| private final Date nextUpdate | |
| thisUpdate | back to summary |
|---|---|
| private final Date thisUpdate | |
| OpenSSLX509CRL | back to summary |
|---|---|
| private OpenSSLX509CRL(long ctx) throws ParsingException | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| fromPkcs7DerInputStream | back to summary |
|---|---|
| pack-priv static List | |
| fromPkcs7PemInputStream | back to summary |
|---|---|
| pack-priv static List | |
| fromX509DerInputStream | back to summary |
|---|---|
| pack-priv static OpenSSLX509CRL fromX509DerInputStream(InputStream is) throws ParsingException | |
| fromX509PemInputStream | back to summary |
|---|---|
| pack-priv static OpenSSLX509CRL fromX509PemInputStream(InputStream is) throws ParsingException | |
| getCriticalExtensionOIDs | back to summary |
|---|---|
| public Set Implements java. Doc from java. Gets a Set of the OID strings for the extension(s) marked CRITICAL in the certificate/CRL managed by the object implementing this interface. Here is sample code to get a Set of critical extensions from an X509Certificate and print the OIDs:
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() throws CRLException Implements abstract java. Doc from java. Returns the ASN.1 DER-encoded form of this CRL.
| |
| getExtensionValue | back to summary | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public byte[] getExtensionValue(String oid) Implements java. Doc from java. Gets the DER-encoded OCTET string for the extension value
(extnValue) identified by the passed-in For example:
| |||||||||||||||||||||||
| getIssuerDN | back to summary |
|---|---|
| public Principal getIssuerDN() Implements abstract java. Doc from java. Gets the The issuer name field contains an X.500 distinguished name (DN). The ASN.1 definition for this is:
issuer Name
Name ::= CHOICE { RDNSequence }
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
RelativeDistinguishedName ::=
SET OF AttributeValueAssertion
AttributeValueAssertion ::= SEQUENCE {
AttributeType,
AttributeValue }
AttributeType ::= OBJECT IDENTIFIER
AttributeValue ::= ANY
The Name describes a hierarchical name composed of
attributes,
such as country name, and corresponding values, such as US.
The type of the AttributeValue component is determined by
the AttributeType; in general it will be a
directoryString. A directoryString is usually
one of PrintableString,
TeletexString or UniversalString.
| |
| getIssuerX500Principal | back to summary |
|---|---|
| public X500Principal getIssuerX500Principal() Overrides java. Doc from java. Returns the issuer (issuer distinguished name) value from the
CRL as an It is recommended that subclasses override this method.
| |
| getNextUpdate | back to summary |
|---|---|
| public Date getNextUpdate() Implements abstract java. Doc from java. Gets the | |
| getNonCriticalExtensionOIDs | back to summary |
|---|---|
| public Set Implements java. Doc from java. Gets a Set of the OID strings for the extension(s) marked NON-CRITICAL in the certificate/CRL managed by the object implementing this interface. Here is sample code to get a Set of non-critical extensions from an X509CRL revoked certificate entry and print the OIDs:
| |
| getRevokedCertificate | back to summary |
|---|---|
| public X509CRLEntry getRevokedCertificate(BigInteger serialNumber) Implements abstract java. Doc from java. Gets the CRL entry, if any, with the given certificate serialNumber.
| |
| getRevokedCertificate | back to summary |
|---|---|
| public X509CRLEntry getRevokedCertificate(X509Certificate certificate) Overrides java. Doc from java. Get the CRL entry, if any, for the given certificate. This method can be used to lookup CRL entries in indirect CRLs, that means CRLs that contain entries from issuers other than the CRL issuer. The default implementation will only return entries for certificates issued by the CRL issuer. Subclasses that wish to support indirect CRLs should override this method.
| |
| getRevokedCertificates | back to summary |
|---|---|
| public Set Implements abstract java. Doc from java. Gets all the entries from this CRL. This returns a Set of X509CRLEntry objects.
| |
| getSigAlgName | back to summary |
|---|---|
| public String getSigAlgName() Implements abstract java. Doc from java. Gets the signature algorithm name for the CRL signature algorithm. An example is the string "SHA256withRSA". The ASN.1 definition for this is:
signatureAlgorithm AlgorithmIdentifier
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
parameters ANY DEFINED BY algorithm OPTIONAL }
-- contains a value of the type
-- registered for use with the
-- algorithm object identifier value
The algorithm name is determined from the | |
| getSigAlgOID | back to summary |
|---|---|
| public String getSigAlgOID() Implements abstract java. Doc from java. Gets the signature algorithm OID string from the CRL. An OID is represented by a set of nonnegative whole numbers separated by periods. For example, the string "1.2.840.10040.4.3" identifies the SHA-1 with DSA signature algorithm defined in RFC 3279: Algorithms and Identifiers for the Internet X.509 Public Key Infrastructure Certificate and CRL Profile. See | |
| getSigAlgParams | back to summary |
|---|---|
| public byte[] getSigAlgParams() Implements abstract java. Doc from java. Gets the DER-encoded signature algorithm parameters from this
CRL's signature algorithm. In most cases, the signature
algorithm parameters are null; the parameters are usually
supplied with the public key.
If access to individual parameter values is needed then use
See
| |
| getSignature | back to summary |
|---|---|
| public byte[] getSignature() Implements abstract java. Doc from java. Gets the signature BIT STRING
| |
| getTBSCertList | back to summary |
|---|---|
| public byte[] getTBSCertList() throws CRLException Implements abstract java. Doc from java. Gets the DER-encoded CRL information, the
| |
| getThisUpdate | back to summary |
|---|---|
| public Date getThisUpdate() Implements abstract java. Doc from java. Gets the
thisUpdate ChoiceOfTime
ChoiceOfTime ::= CHOICE {
utcTime UTCTime,
generalTime GeneralizedTime }
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Implements abstract java. Doc from java. Gets the
version Version OPTIONAL,
-- if present, must be v2
Version ::= INTEGER { v1(0), v2(1), v3(2) }
-- v3 does not apply to CRLs but appears for consistency
-- with definition of Version for certs
| |
| hasUnsupportedCriticalExtension | back to summary |
|---|---|
| public boolean hasUnsupportedCriticalExtension() Implements java. Doc from java. Check if there is a critical extension that is not supported.
| |
| isRevoked | back to summary |
|---|---|
| public boolean isRevoked(Certificate cert) Implements abstract java. Doc from java. Checks whether the given certificate is on this CRL.
| |
| toDate | back to summary |
|---|---|
| pack-priv static Date toDate(long asn1time) throws ParsingException | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of this CRL. | |
| verify | back to summary |
|---|---|
| public void verify(PublicKey key) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Implements abstract java. Doc from java. Verifies that this CRL was signed using the private key that corresponds to the given public key.
| |
| verify | back to summary |
|---|---|
| public void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Implements abstract java. Doc from java. Verifies that this CRL was signed using the private key that corresponds to the given public key. This method uses the signature verification engine supplied by the given provider.
| |
| verifyInternal | back to summary |
|---|---|
| private void verifyInternal(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException | |
| verifyOpenSSL | back to summary |
|---|---|
| private void verifyOpenSSL(OpenSSLKey pkey) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException | |