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 byte: the encoded key bytes.

Public Methods

public byte[] getEncoded ()

Added in API level 1

Returns the encoded key bytes.

Returns
byte[] 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
String the string "X.509".