com.kaazing.gateway.amqp.server.spi
Class AmqpPrincipal
java.lang.Object
com.kaazing.gateway.amqp.server.spi.AmqpPrincipal
- All Implemented Interfaces:
- Principal
public class AmqpPrincipal
- extends Object
- implements Principal
AmqpPrincipal
is used to inject credentials into AMQP 0.9.1 messages.
To implement single-sign-on, developers can setup AmqpPrincipal
in
the Subject
their existing LoginModule
implementation like
this:
The username and password from AmqpPrincipal
will be encoded using
AMQPLAIN SASL mechanism and then injected into the AMQP protocol.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmqpPrincipal
public AmqpPrincipal(String name,
char[] password)
getName
public String getName()
- Specified by:
getName
in interface Principal
getPassword
public char[] getPassword()
Copyright © 2014. All Rights Reserved.