com.kaazing.gateway.amqp.server.spi
Class AmqpPrincipal

java.lang.Object
  extended by 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.


Constructor Summary
AmqpPrincipal(String name, char[] password)
           
 
Method Summary
 String getName()
           
 char[] getPassword()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

AmqpPrincipal

public AmqpPrincipal(String name,
                     char[] password)
Method Detail

getName

public String getName()
Specified by:
getName in interface Principal

getPassword

public char[] getPassword()


Copyright © 2014. All Rights Reserved.