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

      public class PrincipalsCallback
      extends Object
      implements Callback

  A Callback for getting the peer principals.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PrincipalsCallback()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Principal[]` | `getPeerPrincipals()` Getter for peer Principals.
    `void` | `setPeerPrincipals(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(Principal[] principal)

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

    - #### getPeerPrincipals

          public Principal[] getPeerPrincipals()

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

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