aicas logoJamaica 3.2 release 62

java.security.spec
Class X509EncodedKeySpec

java.lang.Object
  extended by java.security.spec.EncodedKeySpec
      extended by java.security.spec.X509EncodedKeySpec
All Implemented Interfaces:
KeySpec

public class X509EncodedKeySpec
extends EncodedKeySpec

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

Since:
JDK 1.2

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.
 String getFormat()
          Returns the name of the key format used which is "X.509"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509EncodedKeySpec

public X509EncodedKeySpec(byte[] encodedKey)
Constructs a new X509EncodedKeySpec with the specified encoded key.

Parameters:
encodedKey - A key to store, assumed to be "X.509"
Method Detail

getEncoded

public byte[] getEncoded()
Gets the encoded key in byte format.

Overrides:
getEncoded in class EncodedKeySpec
Returns:
the encoded key

getFormat

public final String getFormat()
Returns the name of the key format used which is "X.509"

Specified by:
getFormat in class EncodedKeySpec
Returns:
a string representing the name

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.