java.lang.Object
java.security.spec.EncodedKeySpec
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