Package org.jboss.resteasy.jose.jwe.crypto

## Class RSAEncrypter

- java.lang.Object
- - org.jboss.resteasy.jose.jwe.crypto.RSAEncrypter

-     public class RSAEncrypter
      extends Object

  RSA encrypter

  Supports the following JWE algorithms:

  - RSA1_5
  - RSA_OAEP

  Supports the following encryption methods:

  - A128CBC_HS256
  - A256CBC_HS512
  - A128GCM
  - A256GCM
  Version:
    $version$ (2013-05-29)
  Author:
    David Ortiz, Vladimir Dzhuvinov

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RSAEncrypter()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static String` | `encrypt​(Algorithm alg, EncryptionMethod enc, CompressionAlgorithm compressionAlgorithm, RSAPublicKey publicKey, String encodedJWEHeader, byte[] bytes)` |

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

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

- - ### Constructor Detail

    - #### RSAEncrypter

          public RSAEncrypter()

  - ### Method Detail

    - #### encrypt

          public static String encrypt​(Algorithm alg,
                                       EncryptionMethod enc,
                                       CompressionAlgorithm compressionAlgorithm,
                                       RSAPublicKey publicKey,
                                       String encodedJWEHeader,
                                       byte[] bytes)