org.jclouds.crypto.pem
Class PKCS1EncodedPrivateKeySpec

java.lang.Object
  extended by org.jclouds.crypto.pem.PKCS1EncodedPrivateKeySpec

public class PKCS1EncodedPrivateKeySpec
extends Object

PKCS#1 encoded private key spec.

Author:
Ignasi Barrera

Constructor Summary
PKCS1EncodedPrivateKeySpec(byte[] keyBytes)
          Create a PKCS#1 keyspec from DER encoded buffer
 
Method Summary
 RSAPrivateKeySpec getKeySpec()
          Get the key spec that JCE understands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS1EncodedPrivateKeySpec

public PKCS1EncodedPrivateKeySpec(byte[] keyBytes)
                           throws IOException
Create a PKCS#1 keyspec from DER encoded buffer

Parameters:
keyBytes - DER encoded octet stream
Throws:
IOException
Method Detail

getKeySpec

public RSAPrivateKeySpec getKeySpec()
Get the key spec that JCE understands.

Returns:
CRT keyspec defined by JCE


Copyright © 2009-2013 jclouds. All Rights Reserved.