Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

X509EncodedKeySpec

extends EncodedKeySpec
java.lang.Object
   ↳ java.security.spec.EncodedKeySpec
     ↳ java.security.spec.X509EncodedKeySpec

Class Overview

The key specification of an X.509 encoded key in ASN.1 format.

Summary

Public Constructors
X509EncodedKeySpec (byte[] encodedKey)
Creates a new X509EncodedKeySpec with the specified encoded key bytes.
Public Methods
byte[] getEncoded ()
Returns the encoded key bytes.
final String getFormat ()
Returns the name of the encoding format of this encoded key specification.
[Expand]
Inherited Methods
From class java.security.spec.EncodedKeySpec
From class java.lang.Object

Public Constructors

public X509EncodedKeySpec (byte[] encodedKey)

Added in API level 1

Creates a new X509EncodedKeySpec with the specified encoded key bytes.

Parameters
encodedKey the encoded key bytes.

Public Methods

public byte[] getEncoded ()

Added in API level 1

Returns the encoded key bytes.

Returns
  • the encoded key bytes.

public final String getFormat ()

Added in API level 1

Returns the name of the encoding format of this encoded key specification.

Returns
  • the string "X.509".