java.lang.Object | |||
↳ | java.security.cert.CRL | ||
↳ | java.security.cert.X509CRL | ||
↳ | sun.security.x509.X509CRLImpl |
An implmentation for X509 CRL (Certificate Revocation List).
The X.509 v2 CRL format is described below in ASN.1:
CertificateList ::= SEQUENCE { tbsCertList TBSCertList, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING }More information can be found in RFC 3280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile.
The ASN.1 definition of tbsCertList
is:
TBSCertList ::= SEQUENCE { version Version OPTIONAL, -- if present, must be v2 signature AlgorithmIdentifier, issuer Name, thisUpdate ChoiceOfTime, nextUpdate ChoiceOfTime OPTIONAL, revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate ChoiceOfTime, crlEntryExtensions Extensions OPTIONAL -- if present, must be v2 } OPTIONAL, crlExtensions [0] EXPLICIT Extensions OPTIONAL -- if present, must be v2 }
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Unmarshals an X.509 CRL from its encoded form, parsing the encoded
bytes.
| |||||||||||
Unmarshals an X.509 CRL from an DER value.
| |||||||||||
Unmarshals an X.509 CRL from an input stream.
| |||||||||||
Initial CRL constructor, no revoked certs, and no extensions.
| |||||||||||
CRL constructor, revoked certs, no extensions.
| |||||||||||
CRL constructor, revoked certs and extensions.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Encodes the "to-be-signed" CRL to the OutputStream.
| |||||||||||
return the AuthorityKeyIdentifier, if any.
| |||||||||||
return the AuthorityKeyIdentifierExtension, if any.
| |||||||||||
return the base CRL number from the DeltaCRLIndicatorExtension, if any.
| |||||||||||
return the CRL number from the CRLNumberExtension, if any.
| |||||||||||
return the CRLNumberExtension, if any.
| |||||||||||
Gets a Set of the extension(s) marked CRITICAL in the
CRL.
| |||||||||||
return the DeltaCRLIndicatorExtension, if any.
| |||||||||||
Returns the ASN.1 DER encoded form of this CRL.
| |||||||||||
Returned the encoding as an uncloned byte array.
| |||||||||||
Returned the encoding of the given certificate for internal use.
| |||||||||||
get an extension
| |||||||||||
Gets the DER encoded OCTET string for the extension value
(
extnValue ) identified by the passed in oid String. | |||||||||||
return the IssuerAlternativeNameExtension, if any.
| |||||||||||
Gets the issuer distinguished name from this CRL.
| |||||||||||
Extract the issuer X500Principal from an X509CRL.
| |||||||||||
Return the issuer as X500Principal.
| |||||||||||
return the IssuingDistributionPointExtension, if any.
| |||||||||||
Gets the nextUpdate date from the CRL.
| |||||||||||
Gets a Set of the extension(s) marked NON-CRITICAL in the
CRL.
| |||||||||||
Gets the CRL entry with the given serial number from this CRL.
| |||||||||||
Gets the CRL entry for the given certificate.
| |||||||||||
Gets all the revoked certificates from the CRL.
| |||||||||||
Gets the signature algorithm name for the CRL
signature algorithm.
| |||||||||||
Gets the signature algorithm OID string from the CRL.
| |||||||||||
Gets the DER encoded signature algorithm parameters from this
CRL's signature algorithm.
| |||||||||||
Gets the raw Signature bits from the CRL.
| |||||||||||
Gets the DER encoded CRL information, the
tbsCertList from this CRL. | |||||||||||
Gets the thisUpdate date from the CRL.
| |||||||||||
Gets the version number from this CRL.
| |||||||||||
Return true if a critical extension is found that is
not supported, otherwise return false.
| |||||||||||
Checks whether the given certificate is on this CRL.
| |||||||||||
Encodes an X.509 CRL, and signs it using the given key.
| |||||||||||
Encodes an X.509 CRL, and signs it using the given key.
| |||||||||||
Utility method to convert an arbitrary instance of X509CRL
to a X509CRLImpl.
| |||||||||||
Returns a printable string of this CRL.
| |||||||||||
Verifies that this CRL was signed using the
private key that corresponds to the given public key,
and that the signature verification was computed by
the given provider.
| |||||||||||
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Unmarshals an X.509 CRL from its encoded form, parsing the encoded bytes. This form of constructor is used by agents which need to examine and use CRL contents. Note that the buffer must include only one CRL, and no "garbage" may be left at the end.
crlData | the encoded bytes, with no trailing padding. |
---|
CRLException | on parsing errors. |
---|
Unmarshals an X.509 CRL from an DER value.
val | a DER value holding at least one CRL |
---|
CRLException | on parsing errors. |
---|
Unmarshals an X.509 CRL from an input stream. Only one CRL is expected at the end of the input stream.
inStrm | an input stream holding at least one CRL |
---|
CRLException | on parsing errors. |
---|
Initial CRL constructor, no revoked certs, and no extensions.
issuer | the name of the CA issuing this CRL. |
---|
CRL constructor, revoked certs, no extensions.
issuer | the name of the CA issuing this CRL. |
---|---|
badCerts | the array of CRL entries. |
CRLException | on parsing/construction errors. |
---|
CRL constructor, revoked certs and extensions.
issuer | the name of the CA issuing this CRL. |
---|---|
badCerts | the array of CRL entries. |
crlExts | the CRL extensions. |
CRLException | on parsing/construction errors. |
---|
Encodes the "to-be-signed" CRL to the OutputStream.
out | the OutputStream to write to. |
---|
CRLException | on encoding errors. |
---|
return the AuthorityKeyIdentifier, if any.
IOException | on error |
---|
return the AuthorityKeyIdentifierExtension, if any.
IOException | on error |
---|
return the base CRL number from the DeltaCRLIndicatorExtension, if any.
IOException | on error |
---|
return the CRL number from the CRLNumberExtension, if any.
IOException | on error |
---|
return the CRLNumberExtension, if any.
IOException | on error |
---|
Gets a Set of the extension(s) marked CRITICAL in the CRL. In the returned set, each extension is represented by its OID string.
return the DeltaCRLIndicatorExtension, if any.
IOException | on error |
---|
Returns the ASN.1 DER encoded form of this CRL.
CRLException | if an encoding error occurs. |
---|
Returned the encoding as an uncloned byte array. Callers must guarantee that they neither modify it nor expose it to untrusted code.
CRLException |
---|
Returned the encoding of the given certificate for internal use. Callers must guarantee that they neither modify it nor expose it to untrusted code. Uses getEncodedInternal() if the certificate is instance of X509CertImpl, getEncoded() otherwise.
CRLException |
---|
Gets the DER encoded OCTET string for the extension value
(extnValue
) identified by the passed in oid String.
The oid
string is
represented by a set of positive whole number separated
by ".", that means,
<positive whole number>.<positive whole number>.<...>
oid | the Object Identifier value for the extension. |
---|
return the IssuerAlternativeNameExtension, if any.
IOException | on error |
---|
Gets the issuer distinguished name from this CRL. The issuer name identifies the entity who has signed (and issued the CRL). 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 ::= ANYThe Name describes a hierarchical name composed of attributes, such as country name, and corresponding values, such as US. The type of the component AttributeValue is determined by the AttributeType; in general it will be a directoryString. A directoryString is usually one of PrintableString, TeletexString or UniversalString.
Extract the issuer X500Principal from an X509CRL. Parses the encoded form of the CRL to preserve the principal's ASN.1 encoding. Called by java.security.cert.X509CRL.getIssuerX500Principal().
Return the issuer as X500Principal. Overrides method in X509CRL to provide a slightly more efficient version.
X500Principal
representing the issuer
distinguished namereturn the IssuingDistributionPointExtension, if any.
IOException | on error |
---|
Gets the nextUpdate date from the CRL.
Gets a Set of the extension(s) marked NON-CRITICAL in the CRL. In the returned set, each extension is represented by its OID string.
Gets the CRL entry with the given serial number from this CRL.
serialNumber | the serial number of the certificate for which a CRL entry is to be looked up |
---|
null
if
no such entry exists in the CRL.Gets the CRL entry for the given certificate.
cert | the certificate for which a CRL entry is to be looked up |
---|
Gets all the revoked certificates from the CRL. A Set of X509CRLEntry.
null
if there are
none.Gets the signature algorithm name for the CRL signature algorithm. For example, the string "SHA1withDSA". The ASN.1 definition for this is:
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
Gets the signature algorithm OID string from the CRL.
An OID is represented by a set of positive whole number separated
by ".", that means,
<positive whole number>.<positive whole number>.<...>
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.
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.
Gets the raw Signature bits from the CRL.
Gets the DER encoded CRL information, the
tbsCertList
from this CRL.
This can be used to verify the signature independently.
CRLException | on encoding errors. |
---|
Gets the thisUpdate date from the CRL. The ASN.1 definition for this is:
Gets the version number from this CRL. The ASN.1 definition for this is:
Version ::= INTEGER { v1(0), v2(1), v3(2) } -- v3 does not apply to CRLs but appears for consistency -- with definition of Version for certs
Return true if a critical extension is found that is not supported, otherwise return false.
Checks whether the given certificate is on this CRL.
cert | the certificate to check for. |
---|
Encodes an X.509 CRL, and signs it using the given key.
key | the private key used for signing. |
---|---|
algorithm | the name of the signature algorithm used. |
provider | the name of the provider. |
NoSuchAlgorithmException | on unsupported signature algorithms. |
---|---|
InvalidKeyException | on incorrect key. |
NoSuchProviderException | on incorrect provider. |
SignatureException | on signature errors. |
CRLException | if any mandatory data was omitted. |
Encodes an X.509 CRL, and signs it using the given key.
key | the private key used for signing. |
---|---|
algorithm | the name of the signature algorithm used. |
NoSuchAlgorithmException | on unsupported signature algorithms. |
---|---|
InvalidKeyException | on incorrect key. |
NoSuchProviderException | on incorrect provider. |
SignatureException | on signature errors. |
CRLException | if any mandatory data was omitted. |
Utility method to convert an arbitrary instance of X509CRL to a X509CRLImpl. Does a cast if possible, otherwise reparses the encoding.
CRLException |
---|
Returns a printable string of this CRL.
Verifies that this CRL was signed using the private key that corresponds to the given public key, and that the signature verification was computed by the given provider.
key | the PublicKey used to carry out the verification. |
---|---|
sigProvider | the name of the signature provider. |
NoSuchAlgorithmException | on unsupported signature algorithms. |
---|---|
InvalidKeyException | on incorrect key. |
NoSuchProviderException | on incorrect provider. |
SignatureException | on signature errors. |
CRLException | on encoding errors. |
Verifies that this CRL was signed using the private key that corresponds to the given public key.
key | the PublicKey used to carry out the verification. |
---|
NoSuchAlgorithmException | on unsupported signature algorithms. |
---|---|
InvalidKeyException | on incorrect key. |
NoSuchProviderException | if there's no default provider. |
SignatureException | on signature errors. |
CRLException | on encoding errors. |