public class ArtemisAuthInterceptor extends Object implements org.apache.activemq.artemis.api.core.Interceptor
| Modifier and Type | Field and Description |
|---|---|
static String |
USERNAME_PROPERTY |
| Constructor and Description |
|---|
ArtemisAuthInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
org.yamcs.security.AuthInjectionAssociation |
cache(String username,
org.apache.activemq.artemis.spi.core.protocol.RemotingConnection conn)
Adds the user to the cache so all subsequent Messages have the username
injected.
|
void |
flush(Object connectionId)
Stops username injection for the specified connection.
|
void |
flush(String username)
Stops username injection for all connections made with the specified
username.
|
void |
flushDisconnected()
Stops username injection for all connections which have been destroyed.
|
Map<Object,org.yamcs.security.AuthInjectionAssociation> |
getCache() |
boolean |
intercept(org.apache.activemq.artemis.core.protocol.core.Packet packet,
org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection) |
public static final String USERNAME_PROPERTY
public boolean intercept(org.apache.activemq.artemis.core.protocol.core.Packet packet,
org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection)
throws org.apache.activemq.artemis.api.core.ActiveMQException
intercept in interface org.apache.activemq.artemis.api.core.BaseInterceptor<org.apache.activemq.artemis.core.protocol.core.Packet>org.apache.activemq.artemis.api.core.ActiveMQExceptionpublic org.yamcs.security.AuthInjectionAssociation cache(String username, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection conn)
username - conn - public void flush(Object connectionId)
connectionId - public void flush(String username)
username - public void flushDisconnected()
public Map<Object,org.yamcs.security.AuthInjectionAssociation> getCache()
Copyright © 2018 Space Applications Services. All rights reserved.