Deprecated
Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.
| Modifier and Type | Field and Description |
|---|---|
| private CertificateList | |
| private int | |
| private boolean | |
| private boolean | |
| private String | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | equals(Object
the object to test for equality with this CRL. other)Overrides java. Compares this CRL for equality with the given object. |
| 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. |
| public byte[] | getEncoded()
Implements abstract java. Returns the ASN.1 DER-encoded form of this CRL. |
| 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 |
| 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 int | hashCode()
Overrides java. Returns a hashcode value for this CRL from its encoded form. |
| 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 static boolean | |
| 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, 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, Provider the signature provider. sigProvider)Overrides java. Verifies that this CRL was signed using the private key that corresponds to the given public key. |
| c | back to summary |
|---|---|
| private CertificateList c | |
| hashCodeValue | back to summary |
|---|---|
| private int hashCodeValue | |
| isHashCodeSet | back to summary |
|---|---|
| private boolean isHashCodeSet | |
| isIndirect | back to summary |
|---|---|
| private boolean isIndirect | |
| sigAlgName | back to summary |
|---|---|
| private String sigAlgName | |
| sigAlgParams | back to summary |
|---|---|
| private byte[] sigAlgParams | |
| X509CRLObject | back to summary |
|---|---|
| public X509CRLObject(CertificateList c) throws CRLException | |
| doVerify | back to summary |
|---|---|
| private void doVerify(PublicKey key, Signature sig) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, SignatureException | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Compares this CRL for equality with the given
object. If the
| |
| 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.
| |
| 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:
| |||||||||||||||||||||||||||||
| 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
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hashcode value for this CRL from its encoded form.
| |
| 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!
| |
| isIndirectCRL | back to summary |
|---|---|
| public static boolean isIndirectCRL(X509CRL crl) throws CRLException | |
| 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, 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, 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
| |