KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > security > spec > X509EncodedKeySpec

java.security.spec
Class X509EncodedKeySpec

java.lang.Object
  extended by java.security.spec.EncodedKeySpec
      extended by java.security.spec.X509EncodedKeySpec
All Implemented Interfaces:
KeySpec
See Also:
Top Examples, Source Code, Key, KeyFactory, PKCS8EncodedKeySpec

public byte[] getEncoded()
See Also:
EncodedKeySpec
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1562]X509EncodedKeySpec and PKCS8EncodedKeySpec
By Anonymous on 2005/10/07 05:27:24  Rate
The X509EncodedKeySpec is used for generating public keys. Use the 
 PKCS8EncodedKeySpec instead and make sure that the private key in your 
 file is DER  ( binary )  encoded according to the PKCS#8 format. If the key 
 is base64 encoded  ( ASCII )  then you can convert it to binary by using 
 Sun's "unsupported" converter class sun.misc.BASE64Decoder.


public final String getFormat()
See Also:
EncodedKeySpec
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public X509EncodedKeySpec(byte[] encodedKey)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags