Method Summary |
|
public void | checkValidity() Checks that the certificate is currently valid, i.e. |
public void | checkValidity(Date date) Checks that the specified date is within the certificate's
validity period, or basically if the certificate would be
valid at the specified date/time. |
public void | delete(String name) Delete the requested attribute from the certificate. |
public void | derEncode(OutputStream out) DER encode this object onto an output stream. |
public void | encode(OutputStream out) Appends the certificate to an output stream. |
public Object | get(String name) Return the requested attribute from the certificate.
Note that the X509CertInfo is not cloned for performance reasons.
Callers must ensure that they do not modify it. |
public AuthorityKeyIdentifierExtension | getAuthorityKeyIdentifierExtension() |
public int | getBasicConstraints() Get the certificate constraints path length from the
the critical BasicConstraints extension, (oid = 2.5.29.19). |
public BasicConstraintsExtension | getBasicConstraintsExtension() |
public Set | getCriticalExtensionOIDs() Gets a Set of the extension(s) marked CRITICAL in the
certificate. |
public Enumeration | getElements() Return an enumeration of names of attributes existing within this
attribute. |
public byte[] | getEncoded() Returns the encoded form of this certificate. |
public byte[] | getEncodedInternal() Returned the encoding as an uncloned byte array. |
public static byte[] | getEncodedInternal(Certificate cert) Returned the encoding of the given certificate for internal use.
Callers must guarantee that they neither modify it nor expose it
to untrusted code. |
public synchronized List | getExtendedKeyUsage() This method are the overridden implementation of
getExtendedKeyUsage method in X509Certificate in the Sun
provider. |
public static List | getExtendedKeyUsage(X509Certificate cert) This static method is the default implementation of the
getExtendedKeyUsage method in X509Certificate. |
public ExtendedKeyUsageExtension | getExtendedKeyUsageExtension() |
public Extension | getExtension(ObjectIdentifier oid) Gets the extension identified by the given ObjectIdentifier
Parameters: oid - the Object Identifier value for the extension. |
public byte[] | getExtensionValue(String oid) Gets the DER encoded extension identified by the given
oid String. |
public IssuerAlternativeNameExtension | getIssuerAlternativeNameExtension() |
public synchronized Collection | getIssuerAlternativeNames() This method are the overridden implementation of
getIssuerAlternativeNames method in X509Certificate in the Sun
provider. |
public static Collection | getIssuerAlternativeNames(X509Certificate cert) This static method is the default implementation of the
getIssuerAlternaitveNames method in X509Certificate. |
public Principal | getIssuerDN() Gets the issuer distinguished name from the certificate. |
public boolean[] | getIssuerUniqueID() Gets the Issuer Unique Identity from the certificate. |
public X500Principal | getIssuerX500Principal() Get issuer name as X500Principal. |
public static X500Principal | getIssuerX500Principal(X509Certificate cert) Extract the issuer X500Principal from an X509Certificate. |
public boolean[] | getKeyUsage() Get a boolean array representing the bits of the KeyUsage extension,
(oid = 2.5.29.15). |
public String | getName() Return the name of this attribute. |
public NameConstraintsExtension | getNameConstraintsExtension() |
public Set | getNonCriticalExtensionOIDs() Gets a Set of the extension(s) marked NON-CRITICAL in the
certificate. |
public Date | getNotAfter() Gets the notAfter date from the validity period of the certificate. |
public Date | getNotBefore() Gets the notBefore date from the validity period of the certificate. |
public PolicyConstraintsExtension | getPolicyConstraintsExtension() |
public PolicyMappingsExtension | getPolicyMappingsExtension() |
public PrivateKeyUsageExtension | getPrivateKeyUsageExtension() |
public PublicKey | getPublicKey() Gets the publickey from this certificate. |
public BigInteger | getSerialNumber() Gets the serial number from the certificate. |
public String | getSigAlgName() Gets the signature algorithm name for the certificate
signature algorithm. |
public String | getSigAlgOID() Gets the signature algorithm OID string from the certificate. |
public byte[] | getSigAlgParams() Gets the DER encoded signature algorithm parameters from this
certificate's signature algorithm. |
public byte[] | getSignature() Gets the raw Signature bits from the certificate. |
public SubjectAlternativeNameExtension | getSubjectAlternativeNameExtension() |
public synchronized Collection | getSubjectAlternativeNames() This method are the overridden implementation of
getSubjectAlternativeNames method in X509Certificate in the Sun
provider. |
public static Collection | getSubjectAlternativeNames(X509Certificate cert) This static method is the default implementation of the
getSubjectAlternaitveNames method in X509Certificate. |
public Principal | getSubjectDN() Gets the subject distinguished name from the certificate. |
public SubjectKeyIdentifierExtension | getSubjectKeyIdentifierExtension() |
public boolean[] | getSubjectUniqueID() Gets the Subject Unique Identity from the certificate. |
public X500Principal | getSubjectX500Principal() Get subject name as X500Principal. |
public static X500Principal | getSubjectX500Principal(X509Certificate cert) Extract the subject X500Principal from an X509Certificate. |
public byte[] | getTBSCertificate() Gets the DER encoded certificate informations, the
tbsCertificate from this certificate. |
public int | getVersion() Gets the version number from the certificate.
the version number, i.e. |
public boolean | hasUnsupportedCriticalExtension() Return true if a critical extension is found that is
not supported, otherwise return false. |
public void | set(String name, Object obj) Set the requested attribute in the certificate. |
public void | sign(PrivateKey key, String algorithm) Creates an X.509 certificate, and signs it using the given key
(associating a signature algorithm and an X.500 name). |
public void | sign(PrivateKey key, String algorithm, String provider) Creates an X.509 certificate, and signs it using the given key
(associating a signature algorithm and an X.500 name). |
public static X509CertImpl | toImpl(X509Certificate cert) Utility method to convert an arbitrary instance of X509Certificate
to a X509CertImpl. |
public String | toString() Returns a printable representation of the certificate. |
public void | verify(PublicKey key) Throws an exception if the certificate was not signed using the
verification key provided. |
public synchronized void | verify(PublicKey key, String sigProvider) Throws an exception if the certificate was not signed using the
verification key provided. |