public class Krb5Token extends AuthToken
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
client_password |
static java.lang.String |
CLIENT_PASSWORD |
protected java.lang.String |
client_principal_name |
static java.lang.String |
CLIENT_PRINCIPAL_NAME |
protected java.lang.String |
service_principal_name |
static java.lang.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.
|
java.lang.String |
getName()
Used to return the full package and class name of the implementation.
|
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setValue(java.util.Properties properties) |
int |
size()
The size of the marshalled AuthToken
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final java.lang.String CLIENT_PRINCIPAL_NAME
public static final java.lang.String CLIENT_PASSWORD
public static final java.lang.String SERVICE_PRINCIPAL_NAME
protected java.lang.String client_principal_name
protected java.lang.String client_password
protected java.lang.String service_principal_name
public void setValue(java.util.Properties properties)
public java.lang.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(java.io.DataOutput out) throws java.io.IOException
Streamable
java.io.IOException
public void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright © 1998-2020 Red Hat. All Rights Reserved.