Authority Key Identifier Issuer Alternative Name CRL Number Delta CRL Indicator (critical) Issuing Distribution Point (critical)
| Modifier and Type | Field and Description |
|---|---|
| protected JcaJceHelper | |
| protected CertificateList | |
| protected boolean | |
| protected String | |
| protected byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | X509CRLImpl(JcaJceHelper bcHelper, CertificateList c, String sigAlgName, byte[] sigAlgParams, boolean isIndirect)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public Set | getCriticalExtensionOIDs()
Implements 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. |
| pack-priv static byte[] | |
| private Set | |
| public byte[] | getExtensionValue(String
the Object Identifier value for the extension. oid)Implements java. Gets the DER-encoded OCTET string for the extension value
(extnValue) identified by the passed-in |
| pack-priv static ASN1OctetString | |
| public Principal | getIssuerDN()
Implements abstract java. Gets the |
| public X500Principal | getIssuerX500Principal()
Overrides java. Returns the issuer (issuer distinguished name) value from the
CRL as an |
| public Date | getNextUpdate()
Implements abstract java. Gets the |
| public Set | getNonCriticalExtensionOIDs()
Implements 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. |
| public X509CRLEntry | getRevokedCertificate(BigInteger
the serial number of the certificate for which a CRL entry
is to be looked up serialNumber)Implements abstract java. Gets the CRL entry, if any, with the given certificate serialNumber. |
| public Set | getRevokedCertificates()
Implements abstract java. Gets all the entries from this CRL. |
| public String | getSigAlgName()
Implements abstract java. Gets the signature algorithm name for the CRL signature algorithm. |
| public String | getSigAlgOID()
Implements abstract java. Gets the signature algorithm OID string from the CRL. |
| public byte[] | getSigAlgParams()
Implements abstract java. Gets the DER-encoded signature algorithm parameters from this CRL's signature algorithm. |
| public byte[] | getSignature()
Implements abstract java. Gets the |
| public byte[] | getTBSCertList()
Implements abstract java. Gets the DER-encoded CRL information, the
|
| public Date | getThisUpdate()
Implements abstract java. Gets the |
| public int | getVersion()
Implements abstract java. Gets the |
| public boolean | hasUnsupportedCriticalExtension()
Implements java. Will return true if any extensions are present and marked as critical as we currently dont handle any extensions! |
| public boolean | Returns: true if the given certificate is on this CRL, false otherwise.the certificate to check for. cert)Implements abstract java. Checks whether the given certificate is on this CRL. |
| private Set | |
| public String | Returns: a string representation of this CRL.Implements abstract java. Returns a string representation of this CRL. |
| public void | verify(PublicKey
the PublicKey used to carry out the verification. key)Implements abstract java. Verifies that this CRL was signed using the private key that corresponds to the given public key. |
| public void | verify(PublicKey
the PublicKey used to carry out the verification. key, final String the name of the signature provider. sigProvider)Implements abstract java. Verifies that this CRL was signed using the private key that corresponds to the given public key. |
| public void | verify(PublicKey
the PublicKey used to carry out the verification. key, final Provider the signature provider. sigProvider)Overrides java. Verifies that this CRL was signed using the private key that corresponds to the given public key. |
| bcHelper | back to summary |
|---|---|
| protected JcaJceHelper bcHelper | |
| c | back to summary |
|---|---|
| protected CertificateList c | |
| isIndirect | back to summary |
|---|---|
| protected boolean isIndirect | |
| sigAlgName | back to summary |
|---|---|
| protected String sigAlgName | |
| sigAlgParams | back to summary |
|---|---|
| protected byte[] sigAlgParams | |
| X509CRLImpl | back to summary |
|---|---|
| pack-priv X509CRLImpl(JcaJceHelper bcHelper, CertificateList c, String sigAlgName, byte[] sigAlgParams, boolean isIndirect) | |
| checkSignature | back to summary |
|---|---|
| private void checkSignature(PublicKey key, Signature signature, ASN1Encodable sigAlgParams, byte[] sigBytes) throws CRLException, InvalidKeyException, NoSuchAlgorithmException, SignatureException | |
| doVerify | back to summary |
|---|---|
| private void doVerify(PublicKey key, SignatureCreator sigCreator) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException | |
| 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:
| |
| getExtensionOctets | back to summary |
|---|---|
| pack-priv static byte[] getExtensionOctets(CertificateList c, ASN1ObjectIdentifier oid) | |
| getExtensionOIDs | back to summary |
|---|---|
| private Set | |
| 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:
| |||||||||||||||||||||||||||||
| getExtensionValue | back to summary |
|---|---|
| pack-priv static ASN1OctetString getExtensionValue(CertificateList c, ASN1ObjectIdentifier oid) | |
| 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.
| |
| 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. Will return true if any extensions are present and marked as critical as we currently dont handle any extensions!
| |
| isRevoked | back to summary |
|---|---|
| public boolean isRevoked(Certificate cert) Implements abstract java. Checks whether the given certificate is on this CRL.
| |
| loadCRLEntries | back to summary |
|---|---|
| private Set | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract 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, final 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.
| |
| verify | back to summary |
|---|---|
| public void verify(PublicKey key, final Provider sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, SignatureException Overrides 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. Note that the specified Provider object
does not have to be registered in the provider list.
This method was added to version 1.8 of the Java Platform Standard
Edition. In order to maintain backwards compatibility with existing
service providers, this method is not
| |