net.oauth.signature.pem
Class PKCS1EncodedPublicKeySpec

java.lang.Object
  extended by net.oauth.signature.pem.PKCS1EncodedPublicKeySpec

public class PKCS1EncodedPublicKeySpec
extends Object

PKCS#1 encoded public key spec. In oauth package as they made all classes package visible.

Author:
Adrian Cole

Constructor Summary
PKCS1EncodedPublicKeySpec(byte[] keyBytes)
          Create a PKCS#1 keyspec from DER encoded buffer
 
Method Summary
 RSAPublicKeySpec 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

PKCS1EncodedPublicKeySpec

public PKCS1EncodedPublicKeySpec(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 RSAPublicKeySpec getKeySpec()
Get the key spec that JCE understands.

Returns:
CRT keyspec defined by JCE


Copyright © 2009-2011 jclouds. All Rights Reserved.