Package tigase.cert

## Class RSAPrivateKeyDecoder

- java.lang.Object
- - tigase.cert.RSAPrivateKeyDecoder

-     public class RSAPrivateKeyDecoder
      extends java.lang.Object

  Created: Oct 9, 2010 9:16:55 PM
  Version:
    $Rev$
  Author:
    Artur Hefczyc

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RSAPrivateKeyDecoder​(byte[] bytes)` |
    `RSAPrivateKeyDecoder​(java.io.InputStream is)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.security.spec.RSAPrivateCrtKeySpec` | `getKeySpec()` |
    `java.security.PrivateKey` | `getPrivateKey()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RSAPrivateKeyDecoder

          public RSAPrivateKeyDecoder​(byte[] bytes)

    - #### RSAPrivateKeyDecoder

          public RSAPrivateKeyDecoder​(java.io.InputStream is)

  - ### Method Detail

    - #### getKeySpec

          public java.security.spec.RSAPrivateCrtKeySpec getKeySpec()
                                                             throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getPrivateKey

          public java.security.PrivateKey getPrivateKey()
                                                 throws java.security.NoSuchAlgorithmException,
                                                        java.security.spec.InvalidKeySpecException,
                                                        java.io.IOException

      Throws:
        `java.security.NoSuchAlgorithmException`
        `java.security.spec.InvalidKeySpecException`
        `java.io.IOException`