tigase.db

## Class AuthRepositoryMDImpl

- java.lang.Object
- - tigase.db.AuthRepositoryMDImpl

- All Implemented Interfaces:
    AuthRepository

      public class AuthRepositoryMDImpl
      extends Object
      implements AuthRepository

  Created: Mar 27, 2010 9:10:21 PM
  Version:
    $Rev$
  Author:
    Artur Hefczyc

- - ### Field Summary

    - ### Fields inherited from interface tigase.db.AuthRepository

      `DATA_KEY, DIGEST_ID_KEY, DIGEST_KEY, MACHANISM_KEY, PASSWORD_KEY, PROTOCOL_KEY, PROTOCOL_VAL_NONSASL, PROTOCOL_VAL_SASL, REALM_KEY, RESULT_KEY, SERVER_NAME_KEY, USER_ID_KEY, USERNAME_KEY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthRepositoryMDImpl()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addRepo(String domain, AuthRepository repo)` Method description
    `void` | `addUser(tigase.xmpp.BareJID user, String password)` Method description
    `boolean` | `digestAuth(tigase.xmpp.BareJID user, String digest, String id, String alg)` Deprecated.
    `AuthRepository` | `getRepo(String domain)` Method description
    `String` | `getResourceUri()` Method description
    `long` | `getUsersCount()` Method description
    `long` | `getUsersCount(String domain)` Method description
    `void` | `initRepository(String resource_uri, Map<String,String> params)` Method description
    `void` | `logout(tigase.xmpp.BareJID user)` Method description
    `boolean` | `otherAuth(Map<String,Object> authProps)` Method description
    `boolean` | `plainAuth(tigase.xmpp.BareJID user, String password)` Deprecated.
    `void` | `queryAuth(Map<String,Object> authProps)` Method description
    `AuthRepository` | `removeRepo(String domain)` Method description
    `void` | `removeUser(tigase.xmpp.BareJID user)` Method description
    `void` | `setDefault(AuthRepository repo)` Method description
    `void` | `updatePassword(tigase.xmpp.BareJID user, String password)` Method description

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AuthRepositoryMDImpl

          public AuthRepositoryMDImpl()

  - ### Method Detail

    - #### addRepo

          public void addRepo(String domain,
                     AuthRepository repo)

      Method description
      Parameters:
        `domain` -
        `repo` -

    - #### addUser

          public void addUser(tigase.xmpp.BareJID user,
                     String password)
                       throws UserExistsException,
                              TigaseDBException

      Method description
      Specified by:
        `addUser` in interface `AuthRepository`
      Parameters:
        `user` -
        `password` -
      Throws:
        `TigaseDBException`
        `UserExistsException`

    - #### digestAuth

          @Deprecated
          public boolean digestAuth(tigase.xmpp.BareJID user,
                                      String digest,
                                      String id,
                                      String alg)
                             throws UserNotFoundException,
                                    TigaseDBException,
                                    AuthorizationException

      Deprecated.
      Method description
      Specified by:
        `digestAuth` in interface `AuthRepository`
      Parameters:
        `user` -
        `digest` -
        `id` -
        `alg` -
      Returns:
      Throws:
        `AuthorizationException`
        `TigaseDBException`
        `UserNotFoundException`

    - #### getRepo

          public AuthRepository getRepo(String domain)

      Method description
      Parameters:
        `domain` -
      Returns:

    - #### getResourceUri

          public String getResourceUri()

      Method description
      Specified by:
        `getResourceUri` in interface `AuthRepository`
      Returns:

    - #### getUsersCount

          public long getUsersCount()

      Method description
      Specified by:
        `getUsersCount` in interface `AuthRepository`
      Returns:

    - #### getUsersCount

          public long getUsersCount(String domain)

      Method description
      Specified by:
        `getUsersCount` in interface `AuthRepository`
      Parameters:
        `domain` -
      Returns:

    - #### initRepository

          public void initRepository(String resource_uri,
                            Map<String,String> params)
                              throws DBInitException

      Method description
      Specified by:
        `initRepository` in interface `AuthRepository`
      Parameters:
        `resource_uri` -
        `params` -
      Throws:
        `DBInitException`

    - #### logout

          public void logout(tigase.xmpp.BareJID user)
                      throws UserNotFoundException,
                             TigaseDBException

      Method description
      Specified by:
        `logout` in interface `AuthRepository`
      Parameters:
        `user` -
      Throws:
        `TigaseDBException`
        `UserNotFoundException`

    - #### otherAuth

          public boolean otherAuth(Map<String,Object> authProps)
                            throws UserNotFoundException,
                                   TigaseDBException,
                                   AuthorizationException

      Method description
      Specified by:
        `otherAuth` in interface `AuthRepository`
      Parameters:
        `authProps` -
      Returns:
      Throws:
        `AuthorizationException`
        `TigaseDBException`
        `UserNotFoundException`

    - #### plainAuth

          @Deprecated
          public boolean plainAuth(tigase.xmpp.BareJID user,
                                     String password)
                            throws UserNotFoundException,
                                   TigaseDBException,
                                   AuthorizationException

      Deprecated.
      Method description
      Specified by:
        `plainAuth` in interface `AuthRepository`
      Parameters:
        `user` -
        `password` -
      Returns:
      Throws:
        `AuthorizationException`
        `TigaseDBException`
        `UserNotFoundException`

    - #### queryAuth

          public void queryAuth(Map<String,Object> authProps)

      Method description
      Specified by:
        `queryAuth` in interface `AuthRepository`
      Parameters:
        `authProps` -

    - #### removeRepo

          public AuthRepository removeRepo(String domain)

      Method description
      Parameters:
        `domain` -
      Returns:

    - #### removeUser

          public void removeUser(tigase.xmpp.BareJID user)
                          throws UserNotFoundException,
                                 TigaseDBException

      Method description
      Specified by:
        `removeUser` in interface `AuthRepository`
      Parameters:
        `user` -
      Throws:
        `TigaseDBException`
        `UserNotFoundException`

    - #### setDefault

          public void setDefault(AuthRepository repo)

      Method description
      Parameters:
        `repo` -

    - #### updatePassword

          public void updatePassword(tigase.xmpp.BareJID user,
                            String password)
                              throws UserNotFoundException,
                                     TigaseDBException

      Method description
      Specified by:
        `updatePassword` in interface `AuthRepository`
      Parameters:
        `user` -
        `password` -
      Throws:
        `TigaseDBException`
        `UserNotFoundException`

Copyright © 2013 Tigase. All rights reserved.