to top
Android APIs
Added in API level 1
public interface

X509Extension

java.security.cert.X509Extension
Known Indirect Subclasses

Class Overview

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

public abstract Set<String> getCriticalExtensionOIDs ()

Added in API level 1

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

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

public abstract byte[] getExtensionValue (String oid)

Added in API level 1

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

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

public abstract Set<String> getNonCriticalExtensionOIDs ()

Added in API level 1

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

Returns
  • 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.

public abstract boolean hasUnsupportedCriticalExtension ()

Added in API level 1

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

Returns
  • true if an unsupported CRITICAL extension is present, false otherwise.