public class Krb5Token extends AuthToken
Modifier and Type | Field and Description |
---|---|
protected String |
client_password |
static String |
CLIENT_PASSWORD |
protected String |
client_principal_name |
static String |
CLIENT_PRINCIPAL_NAME |
protected String |
service_principal_name |
static String |
SERVICE_PRINCIPAL_NAME |
Constructor and Description |
---|
Krb5Token() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(AuthToken token,
Message msg)
This method should be implemented to perform the actual authentication of joining members.
|
String |
getName()
Used to return the full package and class name of the implementation.
|
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setValue(Properties properties) |
int |
size()
The size of the marshalled AuthToken
|
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final String CLIENT_PRINCIPAL_NAME
public static final String CLIENT_PASSWORD
public static final String SERVICE_PRINCIPAL_NAME
protected String client_principal_name
protected String client_password
protected String service_principal_name
public void setValue(Properties properties)
public String getName()
AuthToken
public boolean authenticate(AuthToken token, Message msg)
AuthToken
authenticate
in class AuthToken
token
- the token sent by the joinermsg
- the Message object containing the actual JOIN_REQpublic void writeTo(DataOutput out) throws IOException
Streamable
IOException
public void readFrom(DataInput in) throws IOException, IllegalAccessException, InstantiationException
Streamable
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.