KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > messenger > handler > IQAuthInfo


1 /**
2  * $RCSfile: IQAuthInfo.java,v $
3  * $Revision: 1.2 $
4  * $Date: 2004/10/25 23:41:58 $
5  *
6  * Copyright (C) 2004 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.messenger.handler;
13
14 import org.jivesoftware.messenger.auth.UnauthorizedException;
15
16 /**
17  * Information for controlling the authentication options for the server.
18  *
19  * @author Iain Shigeoka
20  */

21 public interface IQAuthInfo {
22
23     /**
24      * Returns true if anonymous authentication is allowed.
25      *
26      * @return true if anonymous logins are allowed
27      */

28     public boolean isAllowAnonymous();
29
30     /**
31      * Changes the server's support for anonymous authentication.
32      *
33      * @param isAnonymous True if anonymous logins should be allowed.
34      * @throws UnauthorizedException If you don't have permission to adjust this setting
35      */

36     public void setAllowAnonymous(boolean isAnonymous) throws UnauthorizedException;
37 }
Popular Tags