|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.karma.core.vc.Authenticators
When a Location
- more specifically, VersionControlSystem
-
requires authentication, Karma provides for a mechanism whereby an dauthenticators.xml
, located in the
Karma configuration directory stores a username. Depending on the specific implementation of
VersionControlSystem
, password info is then retrieved.
The Authenticator
class reads the authenticators.xml
from the Karma configuration
directory and can then map VersionControlSystem
instances by checking if an authenticator
element is present for the location. This mapping is done by checking if the id
attributes for the
location
and the authenticator
are the same.
Method Summary | |
static void |
addAuthenticator(Authenticator authenticator)
Adds an authenticator to authenticators.xml if the authenticator does not yet exist. |
static void |
changePassword(AuthenticatorKey key,
java.lang.String newPassword)
|
static void |
deleteAuthenticator(Authenticator authenticator)
Deletes an authenticator entry from authenticators.xml . |
static Authenticator |
getAuthenticator(Authenticator authenticator)
|
static Authenticator |
getAuthenticator(AuthenticatorKey key)
Retrieves an Authenticator entry from the authenticators.xml file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void changePassword(AuthenticatorKey key, java.lang.String newPassword) throws AuthenticationException
AuthenticationException
public static Authenticator getAuthenticator(Authenticator authenticator) throws AuthenticationException
AuthenticationException
public static Authenticator getAuthenticator(AuthenticatorKey key) throws AuthenticationException
Authenticator
entry from the authenticators.xml
file.
key
- The key by which the Authenticator
will be located.
Authenticator
with key key
.
AuthenticationException
- When no Authenticator
can be found with key key
.public static void addAuthenticator(Authenticator authenticator) throws AuthenticationException
authenticators.xml
if the authenticator does not yet exist.
authenticator
-
AuthenticationException
public static void deleteAuthenticator(Authenticator authenticator) throws AuthenticationException
authenticators.xml
.
authenticator
-
AuthenticationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |