Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security.spec

Class X509EncodedKeySpec

java.lang.Object
|
+--java.security.spec.EncodedKeySpec
   |
   +--java.security.spec.X509EncodedKeySpec


public class X509EncodedKeySpec

extends EncodedKeySpec

X.509 Encoded Key Specification class which is used to store "X.509" byte encoded keys.

Since:Author:

Constructor Summary

X509EncodedKeySpec(byte[] encodedKey)

Constructs a new X509EncodedKeySpec with the specified encoded key.

Method Summary

byte[]getEncoded()

Gets the encoded key in byte format.
java.lang.StringgetFormat()

Returns the name of the key format used which is "X.509"

Constructor Details

X509EncodedKeySpec

public X509EncodedKeySpec(byte[] encodedKey)

Constructs a new X509EncodedKeySpec with the specified encoded key.

Parameters:


Method Details

getEncoded

public byte[] getEncoded()

Gets the encoded key in byte format.


getFormat

public final String getFormat()

Returns the name of the key format used which is "X.509"

Returns: