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

## Class PrincipalsCallback

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

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

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

  A Callback for getting the peer principals.

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.security.Principal[]` | `getPeerPrincipals()` | Getter for peer Principals.
    `void` | `setPeerPrincipals​(java.security.Principal[] principal)` | Setter for peer Principals.

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

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

- - ### Constructor Detail

    - #### PrincipalsCallback

          public PrincipalsCallback()

  - ### Method Detail

    - #### setPeerPrincipals

          public void setPeerPrincipals​(java.security.Principal[] principal)

      Setter for peer Principals.
      Parameters:
        `principal` - The certificates to be returned.

    - #### getPeerPrincipals

          public java.security.Principal[] getPeerPrincipals()

      Getter for peer Principals.
      Returns:
        The principal being carried.