Skip to content

Most visited

Recently visited

navigation
Added in API level 1

X509Extension

public interface X509Extension

java.security.cert.X509Extension
Known Indirect Subclasses


The interface specifying an X.509 Certificate or CRL extension.

Summary

Public methods

abstract Set<String> getCriticalExtensionOIDs()

Returns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.

abstract byte[] getExtensionValue(String oid)

Returns the extension value as DER-encoded OCTET string for the specified OID.

abstract Set<String> getNonCriticalExtensionOIDs()

Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.

abstract boolean hasUnsupportedCriticalExtension()

Returns whether this instance has an extension marked as CRITICAL that it cannot support.

Public methods

getCriticalExtensionOIDs

Added in API level 1
Set<String> getCriticalExtensionOIDs ()

Returns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.

Returns
Set<String> the set of extension OIDs marked as CRITIAL, an empty set if none are marked as CRITICAL, or null if no extensions are present.

getExtensionValue

Added in API level 1
byte[] getExtensionValue (String oid)

Returns the extension value as DER-encoded OCTET string for the specified OID.

Parameters
oid String: the object identifier to get the extension value for.
Returns
byte[] the extension value as DER-encoded OCTET string, or null if no extension for the specified OID can be found.

getNonCriticalExtensionOIDs

Added in API level 1
Set<String> getNonCriticalExtensionOIDs ()

Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.

Returns
Set<String> the set of extension OIDs marked as NON-CRITIAL, an empty set if none are marked as NON-.CRITICAL, or null if no extensions are present.

hasUnsupportedCriticalExtension

Added in API level 1
boolean hasUnsupportedCriticalExtension ()

Returns whether this instance has an extension marked as CRITICAL that it cannot support.

Returns
boolean true if an unsupported CRITICAL extension is present, false otherwise.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.