Package com.swiftmq.swiftlet.auth
Class AuthenticationSwiftlet
- java.lang.Object
-
- com.swiftmq.swiftlet.Swiftlet
-
- com.swiftmq.swiftlet.auth.AuthenticationSwiftlet
-
public abstract class AuthenticationSwiftlet extends Swiftlet
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 Constructor Description AuthenticationSwiftlet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddTopicAuthenticationDelegate(AuthenticationDelegate delegate)ActiveLogincreateActiveLogin(java.lang.String userName, java.lang.String type)Creates anActiveLoginobject.protected abstract java.lang.ObjectcreateLoginId(java.lang.String userName)Creates a unique login id.protected abstract ResourceLimitGroupcreateResourceLimitGroup(java.lang.String userName)Creates a resource limit groupabstract java.lang.StringgetPassword(java.lang.String userName)Returns a user's passwordabstract voidlogout(java.lang.String userName, java.lang.Object loginId)Log out of a userabstract voidremoveTopicAuthenticationDelegate(AuthenticationDelegate delegate)abstract voidverifyHostLogin(java.lang.String username, java.lang.String hostname)Verifies if the user is granted to login from the given host.abstract voidverifyQueueBrowserCreation(java.lang.String queueName, java.lang.Object loginId)Verifies if the user is granted to create a browser at the queueabstract voidverifyQueueCreation(java.lang.Object loginId)Verifies if the user is granted to create a queueabstract voidverifyQueueReceiverSubscription(java.lang.String queueName, java.lang.Object loginId)Verifies if the user is granted to subscribe to the queue as a receiverabstract voidverifyQueueSenderSubscription(java.lang.String queueName, java.lang.Object loginId)Verifies if the user is granted to subscribe to the queue as a senderabstract voidverifySetClientId(java.lang.Object loginId)Verifies if the user is granted to set a new client idabstract voidverifyTopicDurableSubscriberCreation(java.lang.String topicName, java.lang.Object loginId)Verifies if the user is granted to create a durable subscriber at the topicabstract voidverifyTopicReceiverSubscription(java.lang.String topicName, java.lang.Object loginId)Verifies if the user is granted to subscribe to a topic as a receiverabstract voidverifyTopicSenderSubscription(java.lang.String topicName, java.lang.Object loginId)Verifies if the user is granted to subscribe to a topic as a sender-
Methods inherited from class com.swiftmq.swiftlet.Swiftlet
getName, getStartupTime, getState, isSnapshotAvailable, resume, setStartupTime, shutdown, standby, startup
-
-
-
-
Method Detail
-
getPassword
public abstract java.lang.String getPassword(java.lang.String userName) throws AuthenticationExceptionReturns a user's password- Parameters:
userName- username- Throws:
AuthenticationException- if the user is unknown
-
createActiveLogin
public ActiveLogin createActiveLogin(java.lang.String userName, java.lang.String type)
Creates anActiveLoginobject.- Parameters:
userName- username- Returns:
- active login
-
verifyHostLogin
public abstract void verifyHostLogin(java.lang.String username, java.lang.String hostname) throws AuthenticationException, ResourceLimitExceptionVerifies 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
public abstract void verifySetClientId(java.lang.Object loginId) throws AuthenticationExceptionVerifies if the user is granted to set a new client id- Parameters:
loginId- login id- Throws:
AuthenticationException- if he is not granted
-
verifyQueueCreation
public abstract void verifyQueueCreation(java.lang.Object loginId) throws AuthenticationExceptionVerifies 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(java.lang.String queueName, java.lang.Object loginId) throws AuthenticationExceptionVerifies 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(java.lang.String queueName, java.lang.Object loginId) throws AuthenticationExceptionVerifies 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(java.lang.String queueName, java.lang.Object loginId) throws AuthenticationExceptionVerifies 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(java.lang.String topicName, java.lang.Object loginId) throws AuthenticationExceptionVerifies 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(java.lang.String topicName, java.lang.Object loginId) throws AuthenticationExceptionVerifies 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(java.lang.String topicName, java.lang.Object loginId) throws AuthenticationExceptionVerifies 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
public abstract void addTopicAuthenticationDelegate(AuthenticationDelegate delegate)
-
removeTopicAuthenticationDelegate
public abstract void removeTopicAuthenticationDelegate(AuthenticationDelegate delegate)
-
logout
public abstract void logout(java.lang.String userName, java.lang.Object loginId)Log out of a user- Parameters:
userName- user nameloginId- login id
-
createLoginId
protected abstract java.lang.Object createLoginId(java.lang.String userName)
Creates a unique login id.- Parameters:
userName- user name- Returns:
- login id
-
createResourceLimitGroup
protected abstract ResourceLimitGroup createResourceLimitGroup(java.lang.String userName)
Creates a resource limit group- Parameters:
userName- user name- Returns:
- resource limit group
-
-