Package org.jgroups.auth
Class AuthToken
- java.lang.Object
- 
- org.jgroups.auth.AuthToken
 
- 
- All Implemented Interfaces:
- Streamable
 - Direct Known Subclasses:
- FixedMembershipToken,- Krb5Token,- RegexMembership,- X509Token
 
 public abstract class AuthToken extends java.lang.Object implements Streamable Abstract AuthToken class used by implementations of AUTH, e.g. SimpleToken, X509Token- Author:
- Chris Mills, Bela Ban
 
- 
- 
Constructor SummaryConstructors Constructor Description AuthToken()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanauthenticate(AuthToken token, Message msg)This method should be implemented to perform the actual authentication of joining members.voiddestroy()abstract java.lang.StringgetName()Used to return the full package and class name of the implementation.voidinit()voidsetAuth(AUTH auth)abstract intsize()The size of the marshalled AuthTokenvoidstart()voidstop()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.jgroups.util.StreamablereadFrom, writeTo
 
- 
 
- 
- 
- 
Method Detail- 
setAuthpublic void setAuth(AUTH auth) 
 - 
initpublic void init() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
startpublic void start() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
stoppublic void stop() 
 - 
destroypublic void destroy() 
 - 
getNamepublic abstract java.lang.String getName() Used to return the full package and class name of the implementation. This is used by the AUTH protocol to create an instance of the implementation.- Returns:
- a java.lang.String object of the package and class name
 
 - 
sizepublic abstract int size() The size of the marshalled AuthToken
 - 
authenticatepublic abstract boolean authenticate(AuthToken token, Message msg) This method should be implemented to perform the actual authentication of joining members.- Parameters:
- token- the token sent by the joiner
- msg- the Message object containing the actual JOIN_REQ
- Returns:
- true if authenticaion passed or false if it failed.
 
 
- 
 
-