Package org.jgroups.auth
Class AuthToken
java.lang.Object
org.jgroups.auth.AuthToken
- All Implemented Interfaces:
Streamable
- Direct Known Subclasses:
FixedMembershipToken,Krb5Token,RegexMembership,X509Token
Abstract AuthToken class used by implementations of AUTH, e.g. SimpleToken, X509Token
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanauthenticate(AuthToken token, Message msg) This method should be implemented to perform the actual authentication of joining members.voiddestroy()abstract StringgetName()Used to return the full package and class name of the implementation.voidinit()voidabstract intsize()The size of the marshalled AuthTokenvoidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jgroups.util.Streamable
readFrom, writeTo
-
Field Details
-
log
-
auth
A reference to AUTH
-
-
Constructor Details
-
AuthToken
public AuthToken()
-
-
Method Details
-
setAuth
-
init
- Throws:
Exception
-
start
- Throws:
Exception
-
stop
public void stop() -
destroy
public void destroy() -
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
-
size
public abstract int size()The size of the marshalled AuthToken -
authenticate
This method should be implemented to perform the actual authentication of joining members.- Parameters:
token- the token sent by the joinermsg- the Message object containing the actual JOIN_REQ- Returns:
- true if authenticaion passed or false if it failed.
-