public interface X509Certificate
extends javax.microedition.pki.Certificate
Modifier and Type | Interface and Description |
---|---|
static class |
X509Certificate.ExtendedKeyUsage
The extended key usage extension indicates one or more purposes
for which the certified public key may be used,
in addition to or in place of the basic purposes
indicated in the key usage extension.
|
static class |
X509Certificate.KeyUsage
The key usage extension defines the purpose
(e.g., encipherment, signature, certificate signing)of the key
contained in the certificate.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncoded()
Returns the encoded form of this certificate.
|
java.util.List<X509Certificate.ExtendedKeyUsage> |
getExtendedKeyUsage()
Returns a list representing extended key usage extension.
|
java.util.List<X509Certificate.KeyUsage> |
getKeyUsage()
Returns a list representing bits of KeyUsage extension.
|
java.security.PublicKey |
getPublicKey()
Gets the public key from this certificate.
|
boolean |
isExtendedKeyUsageCritical()
Returns
true if 'extended key usage' extension is present and it is critical. |
boolean |
isKeyUsageCritical()
Returns
true if 'key usage' extension is present and it is critical. |
java.security.PublicKey getPublicKey()
byte[] getEncoded()
java.util.List<X509Certificate.KeyUsage> getKeyUsage()
java.util.List<X509Certificate.ExtendedKeyUsage> getExtendedKeyUsage()
boolean isKeyUsageCritical()
true
if 'key usage' extension is present and it is critical.true
if 'key usage' extension is present and it is criticalboolean isExtendedKeyUsageCritical()
true
if 'extended key usage' extension is present and it is critical.true
if 'extended key usage' extension is present and it is criticalCopyright (c) 2014, Oracle and/or its affiliates. All rights reserved.