public class Krb5Token extends AuthToken
限定符和类型 | 字段和说明 |
---|---|
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 |
构造器和说明 |
---|
Krb5Token() |
限定符和类型 | 方法和说明 |
---|---|
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
在类中 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