org.apache.solr.util

## Class CryptoKeys.RSAKeyPair

- java.lang.Object
- - org.apache.solr.util.CryptoKeys.RSAKeyPair

- Enclosing class:
    CryptoKeys

      public static class CryptoKeys.RSAKeyPair
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RSAKeyPair()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `encrypt(ByteBuffer buffer)`
    `PublicKey` | `getPublicKey()`
    `String` | `getPublicKeyStr()`
    `byte[]` | `signSha256(byte[] bytes)`

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

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

- - ### Constructor Detail

    - #### RSAKeyPair

          public RSAKeyPair()

  - ### Method Detail

    - #### getPublicKeyStr

          public String getPublicKeyStr()

    - #### getPublicKey

          public PublicKey getPublicKey()

    - #### encrypt

          public byte[] encrypt(ByteBuffer buffer)

    - #### signSha256

          public byte[] signSha256(byte[] bytes)
                            throws InvalidKeyException,
                                   SignatureException

      Throws:
        `InvalidKeyException`
        `SignatureException`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.