KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > wsm > axis > security > User


1 package org.apache.beehive.wsm.axis.security;
2
3 /*
4  * DropInDeploymentHandler.java
5  *
6  * Copyright 2001-2004 The Apache Software Foundation.
7  *
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */

22
23 import java.util.Collection JavaDoc;
24
25 public interface User {
26
27     public void setName ( String JavaDoc name );
28
29     public String JavaDoc getName ();
30
31     public void setPassword ( String JavaDoc password );
32
33     public String JavaDoc getPassword ();
34
35     public void setMd5 ( boolean isMd5 );
36
37     public boolean isMd5 ();
38
39     public boolean authenticate ( String JavaDoc password);
40
41     public void addGroup( Group group );
42
43     public Group getGroup ( String JavaDoc group );
44
45     public Collection JavaDoc<Group> getGroups ();
46
47     public void addRole( Role role );
48
49     public Role getRole ( String JavaDoc role );
50
51     public Collection JavaDoc<Role> getRoles ();
52
53 }
54
55
Popular Tags