public abstract class JmsAuthorization extends Object
JmsAuthorization is responsible for providing fine-grained access control for client actions. By default,
each client action is denied. Subclasses can selectively enable access to specific client actions.| Constructor and Description |
|---|
JmsAuthorization() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAcknowledge()
Returns true if the subject is authorized to send acknowledgments, otherwise false.
|
boolean |
canConnect()
Deprecated.
Please use
canConnect(String clientID) instead, since that
method provides additional information. |
boolean |
canConnect(String clientID)
Returns true if the subject is authorized to connect using the given clientID
(as set on the JMS Connection object), otherwise false.
|
boolean |
canDurableSubscribeToTopic(String topicName,
String selector)
Returns true if the subject is authorized to create this durable topic subscription, otherwise false.
|
boolean |
canPublishToQueue(JmsQueue queueKind,
String queueName,
JmsPersistence persistence,
JmsMessageType bodyType,
ByteBuffer body)
Returns true if the subject is authorized to publish this message, otherwise false.
|
boolean |
canPublishToQueue(JmsQueue queueKind,
String queueName,
JmsPersistence persistence,
JmsMessageType bodyType,
JmsMapContent mapContent)
Returns true if the subject is authorized to publish this message, otherwise false.
|
boolean |
canPublishToTopic(JmsTopic topicKind,
String topicName,
JmsPersistence persistence,
JmsMessageType bodyType,
ByteBuffer body)
Returns true if the subject is authorized to publish this message, otherwise false.
|
boolean |
canPublishToTopic(JmsTopic topicKind,
String topicName,
JmsPersistence persistence,
JmsMessageType bodyType,
JmsMapContent mapContent)
Returns true if the subject is authorized to publish this map message, otherwise false.
|
boolean |
canSubscribeToQueue(JmsQueue queueKind,
String queueName,
String selector)
Returns true if the subject is authorized to create this queue subscription, otherwise false.
|
boolean |
canSubscribeToTopic(JmsTopic topicKind,
String topicName,
String selector)
Returns true if the subject is authorized to create this non-durable topic subscription, otherwise false.
|
boolean |
canTransact()
Returns true if the subject is authorized to begin, send, abort, and commit transactions, otherwise false.
|
public boolean canConnect(String clientID)
clientID - Client id as set on the client's JMS Connection object, or null if none is set.@Deprecated public boolean canConnect()
canConnect(String clientID) instead, since that
method provides additional information.public boolean canDurableSubscribeToTopic(String topicName, String selector)
topicName - the topic for this subscriptionselector - the selector for this subscriptionpublic boolean canSubscribeToTopic(JmsTopic topicKind, String topicName, String selector)
topicKind - the topic kind for this subscriptiontopicName - the topic for this subscriptionselector - the selector for this subscriptionpublic boolean canSubscribeToQueue(JmsQueue queueKind, String queueName, String selector)
queueKind - the queue kind for this subscriptionqueueName - the queue for this subscriptionselector - the selector for this subscriptionpublic boolean canPublishToTopic(JmsTopic topicKind, String topicName, JmsPersistence persistence, JmsMessageType bodyType, ByteBuffer body)
JmsMessageType).topicKind - the topic kind for this messagetopicName - the topic for this messagepersistence - the delivery mode for this messagebodyType - the message body typebody - the message bodycanPublishToTopic(JmsTopic, String, JmsPersistence, JmsMessageType, JmsMapContent)public boolean canPublishToTopic(JmsTopic topicKind, String topicName, JmsPersistence persistence, JmsMessageType bodyType, JmsMapContent mapContent)
JmsMessageType).topicKind - the topic kind for this messagetopicName - the topic for this messagepersistence - the delivery mode for this messagebodyType - the message body type (always JmsMessageType.MAP)body - the message map bodycanPublishToTopic(JmsTopic, String, JmsPersistence, JmsMessageType, ByteBuffer)public boolean canPublishToQueue(JmsQueue queueKind, String queueName, JmsPersistence persistence, JmsMessageType bodyType, ByteBuffer body)
JmsMessageType).queueKind - the queue kind for this messagequeueName - the queue for this messagepersistence - the delivery mode for this messagebodyType - the message body typebody - the message bodycanPublishToQueue(JmsQueue, String, JmsPersistence, JmsMessageType, JmsMapContent)public boolean canPublishToQueue(JmsQueue queueKind, String queueName, JmsPersistence persistence, JmsMessageType bodyType, JmsMapContent mapContent)
JmsMessageType).queueKind - the queue kind for this map messagequeueName - the queue for this messagepersistence - the delivery mode for this messagebodyType - the message body type (always JmsMessageType.MAP)body - the message map bodycanPublishToQueue(JmsQueue, String, JmsPersistence, JmsMessageType, ByteBuffer)public boolean canTransact()
public boolean canAcknowledge()
Copyright © 2015. All Rights Reserved.