public class

ExampleFishEyeAuthenticator

extends AbstractFishEyeAuthenticator
java.lang.Object
   ↳ com.cenqua.fisheye.user.plugin.AbstractFishEyeAuthenticator
     ↳ com.cenqua.fisheye.user.plugin.ExampleFishEyeAuthenticator

Class Overview

An example authenticator.

This authenticator reads its data from its Properties configuration.

Usernames/passwords are found using properties of the form user.USERNAME=PASSWORD

By default, access is allowed to any repository. Access can be restricted to a set of users using a property of the form repos.REPNAME=USERNAME1,USERNAME2,...,USERNAMEn

To use this example, you would need something like the following in your config.xml:

<security allow-anon="false">
<custom
    classname="com.cenqua.fisheye.user.plugin.ExampleFishEyeAuthenticator"
    auto-add="true"
    positive-cache-ttl="5mins">
    <properties>
user.jane=j4n3
user.fred=fr3d
repos.rep1=jane,fred
repos.rep2=fred
repos.rep3=jane
    </properties>
</custom></security>

Summary

Nested Classes
class ExampleFishEyeAuthenticator.ExampleAuthToken  
Public Constructors
ExampleFishEyeAuthenticator()
Public Methods
AuthToken checkPassword(String username, String password)
void close()
boolean hasPermissionToAccess(AuthToken tok, String repname, String constraint)
void init(Properties cfg)
AuthToken recreateAuth(String username)
[Expand]
Inherited Methods
From class com.cenqua.fisheye.user.plugin.AbstractFishEyeAuthenticator
From class java.lang.Object
From interface com.cenqua.fisheye.user.plugin.FishEyeAuthenticator

Public Constructors

public ExampleFishEyeAuthenticator ()

Public Methods

public AuthToken checkPassword (String username, String password)

public void close ()

public boolean hasPermissionToAccess (AuthToken tok, String repname, String constraint)

public void init (Properties cfg)

Throws
Exception

public AuthToken recreateAuth (String username)