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:
    Callback

      public class CertificateCallback
      extends Object
      implements Callback

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CertificateCallback()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `X509Certificate[]` | `getCertificates()` Getter for certificate chain.
    `void` | `setCertificates(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(X509Certificate[] certs)

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

    - #### getCertificates

          public X509Certificate[] getCertificates()

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

Copyright © 2018 The Apache Software Foundation. All rights reserved.