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
  • Constructor Details

    • AuthenticationSwiftlet

      public AuthenticationSwiftlet()
  • Method Details

    • getPassword

      public abstract String getPassword(String userName) throws AuthenticationException
      Returns a user's password
      Parameters:
      userName - username
      Throws:
      AuthenticationException - if the user is unknown
    • createActiveLogin

      public ActiveLogin createActiveLogin(String userName, String type)
      Creates an ActiveLogin 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 - username
      hostname - hostname
      Throws:
      AuthenticationException - if he is not granted
      ResourceLimitException - if the max number of concurrent connections for this user has been reached
    • verifySetClientId

      public abstract void verifySetClientId(Object loginId) throws AuthenticationException
      Verifies 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(Object loginId) throws AuthenticationException
      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 name
      loginId - 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 name
      loginId - 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 name
      loginId - 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 name
      loginId - 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 name
      loginId - 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 name
      loginId - 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(String userName, Object loginId)
      Log out of a user
      Parameters:
      userName - user name
      loginId - login id
    • createLoginId

      protected abstract Object createLoginId(String userName)
      Creates a unique login id.
      Parameters:
      userName - user name
      Returns:
      login id
    • createResourceLimitGroup

      protected abstract ResourceLimitGroup createResourceLimitGroup(String userName)
      Creates a resource limit group
      Parameters:
      userName - user name
      Returns:
      resource limit group