org.exist.protocolhandler.embedded
Class EmbeddedUser

java.lang.Object
  extended by org.exist.protocolhandler.embedded.EmbeddedUser

public class EmbeddedUser
extends Object

Authenticate user with embedded eXist.

Author:
@author Dannes Wessels

Constructor Summary
EmbeddedUser()
           
 
Method Summary
static User authenticate(XmldbURL xmldbURL, BrokerPool pool)
          Authenticate user specified in URL with embedded database.
static User getUserGuest(BrokerPool pool)
          Get user GUEST from database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedUser

public EmbeddedUser()
Method Detail

authenticate

public static User authenticate(XmldbURL xmldbURL,
                                BrokerPool pool)
Authenticate user specified in URL with embedded database.

Parameters:
xmldbURL - URL formatted as xmldb:exist://username:passwd@......
pool - Exist broker pool, provides access to database.
Returns:
USER when user exists and password is OK, or NULL

getUserGuest

public static User getUserGuest(BrokerPool pool)
Get user GUEST from database.

Parameters:
pool - Exist broker pool, provides access to database.
Returns:
eXist GUEST user.


Copyright (C) Wolfgang Meier. All rights reserved.