Deprecated
as a consequence of X509Certificate being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private X509Certificate | wrapped
Deprecated
as a consequence of
X509Certificate being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkValidity()
Implements abstract javax. |
| public void | checkValidity(Date
the Date to check against to see if this certificate
is valid at that date/time. date)Implements abstract javax. |
| pack-priv byte[] | |
| public byte[] | getEncoded()
Implements abstract javax. |
| public Principal | getIssuerDN()
Implements abstract javax. issuer (issuer distinguished name) value from
the certificate.
|
| public Date | getNotAfter()
Implements abstract javax. notAfter date from the validity period of
the certificate.
|
| public Date | getNotBefore()
Implements abstract javax. notBefore date from the validity period of
the certificate.
|
| public PublicKey | getPublicKey()
Implements abstract javax. |
| public BigInteger | getSerialNumber()
Implements abstract javax. serialNumber value from the certificate.
|
| public String | getSigAlgName()
Implements abstract javax. |
| public String | getSigAlgOID()
Implements abstract javax. |
| public byte[] | getSigAlgParams()
Implements abstract javax. |
| public Principal | getSubjectDN()
Implements abstract javax. subject (subject distinguished name) value
from the certificate.
|
| public int | getVersion()
Implements abstract javax. version (version number) value from the
certificate.
|
| public String | toString()
Implements abstract javax. |
| private X509Certificate | |
| public void | verify(PublicKey
the PublicKey used to carry out the verification. key)Implements abstract javax. |
| public void | verify(PublicKey
the PublicKey used to carry out the verification. key, String the name of the signature provider. sigProvider)Implements abstract javax. |
| bytes | back to summary |
|---|---|
| private final byte[] bytes | |
| wrapped | back to summary |
|---|---|
| private X509Certificate wrapped
Deprecated as a consequence of | |
| LazyJavaxX509Certificate | back to summary |
|---|---|
| public LazyJavaxX509Certificate(byte[] bytes) Creates a new instance which will lazy parse the given bytes. Be aware that the bytes will not be cloned. | |
| checkValidity | back to summary |
|---|---|
| public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException Implements abstract javax. Doc from javax. Checks that the certificate is currently valid. It is if the current date and time are within the validity period given in the certificate. The validity period consists of two date/time values: the first and last dates (and times) on which the certificate is valid. It is defined in ASN.1 as:
validity Validity
Validity ::= SEQUENCE {
notBefore CertificateValidityDate,
notAfter CertificateValidityDate }
CertificateValidityDate ::= CHOICE {
utcTime UTCTime,
generalTime GeneralizedTime }
| |
| checkValidity | back to summary |
|---|---|
| public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException Implements abstract javax. Doc from javax. Checks that the specified date is within the certificate's validity period. In other words, this determines whether the certificate would be valid at the specified date/time.
| |
| getBytes | back to summary |
|---|---|
| pack-priv byte[] getBytes() Return the underlying
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements abstract javax. Doc from javax. Returns the encoded form of this certificate. It is assumed that each certificate type would have only a single form of encoding; for example, X.509 certificates would be encoded as ASN.1 DER.
| |
| getIssuerDN | back to summary |
|---|---|
| public Principal getIssuerDN() Implements abstract javax. Doc from javax. 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.
| |
| getNotAfter | back to summary |
|---|---|
| public Date getNotAfter() Implements abstract javax. Doc from javax. Gets the | |
| getNotBefore | back to summary |
|---|---|
| public Date getNotBefore() Implements abstract javax. Doc from javax. Gets the
validity Validity
Validity ::= SEQUENCE {
notBefore CertificateValidityDate,
notAfter CertificateValidityDate }
CertificateValidityDate ::= CHOICE {
utcTime UTCTime,
generalTime GeneralizedTime }
| |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey() Implements abstract javax. Doc from javax. Gets the public key from this certificate. | |
| getSerialNumber | back to summary |
|---|---|
| public BigInteger getSerialNumber() Implements abstract javax. Doc from javax. Gets the serialNumber CertificateSerialNumber CertificateSerialNumber ::= INTEGER
| |
| getSigAlgName | back to summary |
|---|---|
| public String getSigAlgName() Implements abstract javax. Doc from javax. Gets the signature algorithm name for the certificate signature algorithm. An example is the string "SHA-1/DSA". 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 javax. Doc from javax. Gets the signature algorithm OID string from the certificate. An OID is represented by a set of positive whole numbers separated by periods. For example, the string "1.2.840.10040.4.3" identifies the SHA-1 with DSA signature algorithm, as per the PKIX part I. See | |
| getSigAlgParams | back to summary |
|---|---|
| public byte[] getSigAlgParams() Implements abstract javax. Doc from javax. Gets the DER-encoded signature algorithm parameters from this certificate's signature algorithm. In most cases, the signature algorithm parameters are null; the parameters are usually supplied with the certificate's public key. See
| |
| getSubjectDN | back to summary |
|---|---|
| public Principal getSubjectDN() Implements abstract javax. Doc from javax. Gets the subject Name See | |
| getVersion | back to summary |
|---|---|
| public int getVersion() Implements abstract javax. Doc from javax. Gets the
version [0] EXPLICIT Version DEFAULT v1
Version ::= INTEGER { v1(0), v2(1), v3(2) }
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract javax. Doc from javax. Returns a string representation of this certificate. | |
| unwrap | back to summary |
|---|---|
| private X509Certificate unwrap()
Deprecated as a consequence of | |
| verify | back to summary |
|---|---|
| public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Implements abstract javax. Doc from javax. Verifies that this certificate was signed using the private key that corresponds to the specified public key.
| |
| verify | back to summary |
|---|---|
| public void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Implements abstract javax. Doc from javax. Verifies that this certificate was signed using the private key that corresponds to the specified public key. This method uses the signature verification engine supplied by the specified provider.
| |