public class AuthenticationRequest extends java.lang.Object implements Request
Constructor and Description |
---|
AuthenticationRequest() |
AuthenticationRequest(java.lang.String principal,
java.lang.String credentials) |
AuthenticationRequest(java.lang.String realm,
java.lang.String principal,
java.lang.String credentials) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCredentials() |
java.lang.String |
getRealm() |
RequestType |
getRequestType() |
java.lang.String |
getUsername() |
void |
readExternal(java.io.ObjectInput in)
Changes to this method must observe the optional
metaData version |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for versioned requests
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out)
Changes to this method must observe the optional
metaData version |
public AuthenticationRequest()
public AuthenticationRequest(java.lang.String principal, java.lang.String credentials)
public AuthenticationRequest(java.lang.String realm, java.lang.String principal, java.lang.String credentials)
public void setMetaData(ProtocolMetaData metaData)
Request
setMetaData
in interface Request
metaData
- ProtocolMetaDatapublic RequestType getRequestType()
getRequestType
in interface Request
public java.lang.String getRealm()
public java.lang.String getUsername()
public java.lang.String getCredentials()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
metaData
versionreadExternal
in interface java.io.Externalizable
readExternal
in interface Request
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
metaData
versionwriteExternal
in interface java.io.Externalizable
writeExternal
in interface Request
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object