Package org.apache.activemq.artemis.spi.core.security.jaas

## Class CertificateCallback

- java.lang.Object
- - org.apache.activemq.artemis.spi.core.security.jaas.CertificateCallback

- All Implemented Interfaces:
    `javax.security.auth.callback.Callback`

      public class CertificateCallback
      extends java.lang.Object
      implements javax.security.auth.callback.Callback

  A Callback for SSL certificates. Will return a certificate chain to its client.

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.security.cert.X509Certificate[]` | `getCertificates()` | Getter for certificate chain.
    `void` | `setCertificates​(java.security.cert.X509Certificate[] certs)` | Setter for certificate chain.

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

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

- - ### Constructor Detail

    - #### CertificateCallback

          public CertificateCallback()

  - ### Method Detail

    - #### setCertificates

          public void setCertificates​(java.security.cert.X509Certificate[] certs)

      Setter for certificate chain.
      Parameters:
        `certs` - The certificates to be returned.

    - #### getCertificates

          public java.security.cert.X509Certificate[] getCertificates()

      Getter for certificate chain.
      Returns:
        The certificates being carried.