Package com.swiftmq.swiftlet.auth
Class AuthenticationSwiftlet
java.lang.Object
com.swiftmq.swiftlet.Swiftlet
com.swiftmq.swiftlet.auth.AuthenticationSwiftlet
The AuthenticationSwiftlet is responsible for user authenticating and resource usage verification.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
Field Summary
Fields inherited from class com.swiftmq.swiftlet.Swiftlet
STATE_ACTIVE, STATE_INACTIVE, STATE_STANDBY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
createActiveLogin
(String userName, String type) Creates anActiveLogin
object.protected abstract Object
createLoginId
(String userName) Creates a unique login id.protected abstract ResourceLimitGroup
createResourceLimitGroup
(String userName) Creates a resource limit groupabstract String
getPassword
(String userName) Returns a user's passwordabstract void
Log out of a userabstract void
abstract void
verifyHostLogin
(String username, String hostname) Verifies if the user is granted to login from the given host.abstract void
verifyQueueBrowserCreation
(String queueName, Object loginId) Verifies if the user is granted to create a browser at the queueabstract void
verifyQueueCreation
(Object loginId) Verifies if the user is granted to create a queueabstract void
verifyQueueReceiverSubscription
(String queueName, Object loginId) Verifies if the user is granted to subscribe to the queue as a receiverabstract void
verifyQueueSenderSubscription
(String queueName, Object loginId) Verifies if the user is granted to subscribe to the queue as a senderabstract void
verifySetClientId
(Object loginId) Verifies if the user is granted to set a new client idabstract void
verifyTopicDurableSubscriberCreation
(String topicName, Object loginId) Verifies if the user is granted to create a durable subscriber at the topicabstract void
verifyTopicReceiverSubscription
(String topicName, Object loginId) Verifies if the user is granted to subscribe to a topic as a receiverabstract void
verifyTopicSenderSubscription
(String topicName, Object loginId) Verifies if the user is granted to subscribe to a topic as a senderMethods inherited from class com.swiftmq.swiftlet.Swiftlet
getName, getStartupTime, getState, isSnapshotAvailable, resume, setStartupTime, shutdown, standby, startup
-
Constructor Details
-
AuthenticationSwiftlet
public AuthenticationSwiftlet()
-
-
Method Details
-
getPassword
Returns a user's password- Parameters:
userName
- username- Throws:
AuthenticationException
- if the user is unknown
-
createActiveLogin
Creates anActiveLogin
object.- Parameters:
userName
- username- Returns:
- active login
-
verifyHostLogin
public abstract void verifyHostLogin(String username, String hostname) throws AuthenticationException, ResourceLimitException Verifies if the user is granted to login from the given host.- Parameters:
username
- usernamehostname
- hostname- Throws:
AuthenticationException
- if he is not grantedResourceLimitException
- if the max number of concurrent connections for this user has been reached
-
verifySetClientId
Verifies if the user is granted to set a new client id- Parameters:
loginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
verifyQueueCreation
Verifies if the user is granted to create a queue- Parameters:
loginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
verifyQueueSenderSubscription
public abstract void verifyQueueSenderSubscription(String queueName, Object loginId) throws AuthenticationException Verifies if the user is granted to subscribe to the queue as a sender- Parameters:
queueName
- queue nameloginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
verifyQueueReceiverSubscription
public abstract void verifyQueueReceiverSubscription(String queueName, Object loginId) throws AuthenticationException Verifies if the user is granted to subscribe to the queue as a receiver- Parameters:
queueName
- queue nameloginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
verifyQueueBrowserCreation
public abstract void verifyQueueBrowserCreation(String queueName, Object loginId) throws AuthenticationException Verifies if the user is granted to create a browser at the queue- Parameters:
queueName
- queue nameloginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
verifyTopicSenderSubscription
public abstract void verifyTopicSenderSubscription(String topicName, Object loginId) throws AuthenticationException Verifies if the user is granted to subscribe to a topic as a sender- Parameters:
topicName
- topic nameloginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
verifyTopicReceiverSubscription
public abstract void verifyTopicReceiverSubscription(String topicName, Object loginId) throws AuthenticationException Verifies if the user is granted to subscribe to a topic as a receiver- Parameters:
topicName
- topic nameloginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
verifyTopicDurableSubscriberCreation
public abstract void verifyTopicDurableSubscriberCreation(String topicName, Object loginId) throws AuthenticationException Verifies if the user is granted to create a durable subscriber at the topic- Parameters:
topicName
- topic nameloginId
- login id- Throws:
AuthenticationException
- if he is not granted
-
addTopicAuthenticationDelegate
-
removeTopicAuthenticationDelegate
-
logout
Log out of a user- Parameters:
userName
- user nameloginId
- login id
-
createLoginId
Creates a unique login id.- Parameters:
userName
- user name- Returns:
- login id
-
createResourceLimitGroup
Creates a resource limit group- Parameters:
userName
- user name- Returns:
- resource limit group
-