Package org.bouncycastle.jcajce.provider.asymmetric.rsa

## Class X931SignatureSpi

- java.lang.Object
- - java.security.SignatureSpi
  - - org.bouncycastle.jcajce.provider.asymmetric.rsa.X931SignatureSpi

- Direct Known Subclasses:
    `X931SignatureSpi.RIPEMD128WithRSAEncryption`, `X931SignatureSpi.RIPEMD160WithRSAEncryption`, `X931SignatureSpi.SHA1WithRSAEncryption`, `X931SignatureSpi.SHA224WithRSAEncryption`, `X931SignatureSpi.SHA256WithRSAEncryption`, `X931SignatureSpi.SHA384WithRSAEncryption`, `X931SignatureSpi.SHA512_224WithRSAEncryption`, `X931SignatureSpi.SHA512_256WithRSAEncryption`, `X931SignatureSpi.SHA512WithRSAEncryption`, `X931SignatureSpi.WhirlpoolWithRSAEncryption`

      public class X931SignatureSpi
      extends java.security.SignatureSpi

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `X931SignatureSpi.RIPEMD128WithRSAEncryption` |
    `static class` | `X931SignatureSpi.RIPEMD160WithRSAEncryption` |
    `static class` | `X931SignatureSpi.SHA1WithRSAEncryption` |
    `static class` | `X931SignatureSpi.SHA224WithRSAEncryption` |
    `static class` | `X931SignatureSpi.SHA256WithRSAEncryption` |
    `static class` | `X931SignatureSpi.SHA384WithRSAEncryption` |
    `static class` | `X931SignatureSpi.SHA512_224WithRSAEncryption` |
    `static class` | `X931SignatureSpi.SHA512_256WithRSAEncryption` |
    `static class` | `X931SignatureSpi.SHA512WithRSAEncryption` |
    `static class` | `X931SignatureSpi.WhirlpoolWithRSAEncryption` |

  - ### Field Summary

    - ### Fields inherited from class java.security.SignatureSpi

      `appRandom`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `X931SignatureSpi​(Digest digest, AsymmetricBlockCipher cipher)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected java.lang.Object` | `engineGetParameter​(java.lang.String param)` | Deprecated.
    `protected void` | `engineInitSign​(java.security.PrivateKey privateKey)` |
    `protected void` | `engineInitVerify​(java.security.PublicKey publicKey)` |
    `protected void` | `engineSetParameter​(java.lang.String param, java.lang.Object value)` | Deprecated. replaced with engineSetParameter(java.security.spec.AlgorithmParameterSpec)
    `protected void` | `engineSetParameter​(java.security.spec.AlgorithmParameterSpec params)` |
    `protected byte[]` | `engineSign()` |
    `protected void` | `engineUpdate​(byte b)` |
    `protected void` | `engineUpdate​(byte[] b, int off, int len)` |
    `protected boolean` | `engineVerify​(byte[] sigBytes)` |

    - ### Methods inherited from class java.security.SignatureSpi

      `clone, engineGetParameters, engineInitSign, engineSign, engineUpdate, engineVerify`

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

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

- - ### Constructor Detail

    - #### X931SignatureSpi

          protected X931SignatureSpi​(Digest digest,
                                     AsymmetricBlockCipher cipher)

  - ### Method Detail

    - #### engineInitVerify

          protected void engineInitVerify​(java.security.PublicKey publicKey)
                                   throws java.security.InvalidKeyException

      Specified by:
        `engineInitVerify` in class `java.security.SignatureSpi`
      Throws:
        `java.security.InvalidKeyException`

    - #### engineInitSign

          protected void engineInitSign​(java.security.PrivateKey privateKey)
                                 throws java.security.InvalidKeyException

      Specified by:
        `engineInitSign` in class `java.security.SignatureSpi`
      Throws:
        `java.security.InvalidKeyException`

    - #### engineUpdate

          protected void engineUpdate​(byte b)
                               throws java.security.SignatureException

      Specified by:
        `engineUpdate` in class `java.security.SignatureSpi`
      Throws:
        `java.security.SignatureException`

    - #### engineUpdate

          protected void engineUpdate​(byte[] b,
                                      int off,
                                      int len)
                               throws java.security.SignatureException

      Specified by:
        `engineUpdate` in class `java.security.SignatureSpi`
      Throws:
        `java.security.SignatureException`

    - #### engineSign

          protected byte[] engineSign()
                               throws java.security.SignatureException

      Specified by:
        `engineSign` in class `java.security.SignatureSpi`
      Throws:
        `java.security.SignatureException`

    - #### engineVerify

          protected boolean engineVerify​(byte[] sigBytes)
                                  throws java.security.SignatureException

      Specified by:
        `engineVerify` in class `java.security.SignatureSpi`
      Throws:
        `java.security.SignatureException`

    - #### engineSetParameter

          protected void engineSetParameter​(java.security.spec.AlgorithmParameterSpec params)

      Overrides:
        `engineSetParameter` in class `java.security.SignatureSpi`

    - #### engineSetParameter

          protected void engineSetParameter​(java.lang.String param,
                                            java.lang.Object value)

      Deprecated.
      replaced with engineSetParameter(java.security.spec.AlgorithmParameterSpec)
      Specified by:
        `engineSetParameter` in class `java.security.SignatureSpi`

    - #### engineGetParameter

          protected java.lang.Object engineGetParameter​(java.lang.String param)

      Deprecated.
      Specified by:
        `engineGetParameter` in class `java.security.SignatureSpi`