|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.oauth.signature.pem.PKCS1EncodedKeySpec
public class PKCS1EncodedKeySpec
PKCS#1 encoded private key is commonly used with OpenSSL. It provides CRT parameters so the private key operation can be much faster than using exponent/modulus alone, which is the case for PKCS#8 encoded key.
Unfortunately, JCE doesn't have an API to decode the DER. This class takes DER buffer and decoded into CRT key.
| Constructor Summary | |
|---|---|
PKCS1EncodedKeySpec(byte[] keyBytes)
Create a PKCS#1 keyspec from DER encoded buffer |
|
| Method Summary | |
|---|---|
java.security.spec.RSAPrivateCrtKeySpec |
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 |
|---|
public PKCS1EncodedKeySpec(byte[] keyBytes)
throws java.io.IOException
keyBytes - DER encoded octet stream
java.io.IOException| Method Detail |
|---|
public java.security.spec.RSAPrivateCrtKeySpec getKeySpec()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||