|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.atp.auth.AuthPacket
The AuthPacket class is the challenge-response authentication packet class.
Field Summary | |
protected static java.lang.String |
AUTH_MANNER_DIGEST
|
protected static java.lang.String |
AUTH_MANNER_FIELDNAME
Authentication manner |
protected static java.lang.String |
AUTH_MANNER_SIGNATURE
|
protected static java.lang.String |
AUTHENTICATION_PROTOCOL_VERSION
Authentication protocol version |
protected static java.lang.String |
CHALLENGE_FIELDNAME
Challenge |
protected static java.lang.String |
CRLF
carriage return & line feed |
protected static java.lang.String |
DOMAIN_FIELDNAME
|
protected static java.lang.String |
DOMAIN_SEPARATOR
Security Domain |
protected static java.lang.String |
DOMAINS_FIELDNAME
|
protected static java.lang.String |
END_OF_PACKET
end of packet |
protected static java.lang.String |
FIELD_SEPARATOR
Field separator |
protected static java.lang.String |
RESPONSE_FIELDNAME
Response |
protected static java.lang.String |
SERVERID_FIELDNAME
Identifier of aglet server |
protected static java.lang.String |
STEP_END
|
protected static java.lang.String |
STEP_FIRST_TURN
|
protected static java.lang.String |
STEP_SECOND_TURN
|
protected static java.lang.String |
STEP_START
Step of authentication protocol |
Constructor Summary | |
AuthPacket(java.io.DataInput di)
Constructor for receiving packet |
|
AuthPacket(int step,
int status,
java.util.Enumeration domains,
int manner,
Challenge challenge,
Response response)
Constructor for sending packet |
|
AuthPacket(int step,
int status,
java.lang.String domain,
int manner,
Challenge challenge,
Response response)
Constructor for sending packet |
Method Summary | |
int |
getAuthManner()
Gets authentication manner. |
protected java.lang.String |
getAuthMannerField()
Gets authentication manner field. |
Challenge |
getChallenge()
Gets challenge. |
protected java.lang.String |
getChallengeField()
Gets challenge field. |
Response |
getResponse()
Gets response to challenge. |
protected java.lang.String |
getResponseField()
Gets response to challenge field. |
java.lang.String |
getSecurityDomain()
Gets security domain name. |
protected java.lang.String |
getSecurityDomainField()
Gets security domain field. |
java.lang.String |
getSecurityDomainList()
Gets security domain name list. |
java.util.Enumeration |
getSecurityDomains()
Gets security domain names. |
protected java.lang.String |
getSecurityDomainsField()
Gets security domains field. |
java.lang.String |
getServerID()
Gets server ID. |
protected java.lang.String |
getServerIDField()
Gets server ID field. |
int |
getStatus()
Gets authentication status. |
protected java.lang.String |
getStatusString()
Gets string of authentication status. |
int |
getStep()
Gets authentication protocol step. |
protected java.lang.String |
getStepString()
Gets string of authentication protocol step. |
static boolean |
isTopLine(java.lang.String line)
Checks the line is top line. |
void |
parseBody(java.io.DataInput di)
Parses body of packet from data input stream. |
void |
parseTopLine(java.lang.String topLine)
Parses top line. |
void |
readFrom(java.io.DataInput di)
Reads packet from data input stream. |
void |
readFrom(java.lang.String topLine,
java.io.DataInput di)
Reads packet from data input stream. |
static int |
toAuthManner(java.lang.String manner)
Converts to authentication manner. |
static int |
toAuthManner(java.lang.String manner,
int defaultManner)
Converts to authentication manner. |
static java.lang.String |
toAuthMannerString(int manner)
Converts to string of authentication manner. |
void |
writeTo(java.io.OutputStream out)
Writes packet to output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String CRLF
protected static final java.lang.String END_OF_PACKET
protected static final java.lang.String AUTHENTICATION_PROTOCOL_VERSION
protected static final java.lang.String FIELD_SEPARATOR
protected static final java.lang.String SERVERID_FIELDNAME
protected static final java.lang.String DOMAIN_SEPARATOR
protected static final java.lang.String DOMAINS_FIELDNAME
protected static final java.lang.String DOMAIN_FIELDNAME
protected static final java.lang.String AUTH_MANNER_FIELDNAME
protected static final java.lang.String AUTH_MANNER_DIGEST
protected static final java.lang.String AUTH_MANNER_SIGNATURE
protected static final java.lang.String CHALLENGE_FIELDNAME
protected static final java.lang.String RESPONSE_FIELDNAME
protected static final java.lang.String STEP_START
protected static final java.lang.String STEP_FIRST_TURN
protected static final java.lang.String STEP_SECOND_TURN
protected static final java.lang.String STEP_END
Constructor Detail |
public AuthPacket(int step, int status, java.lang.String domain, int manner, Challenge challenge, Response response)
step
- step of authentication protocolstatus
- status of authentication protocoldomain
- security domain namemanner
- authenticatoin manner by challenge-responsechallenge
- challenge for authenticationresponse
- response of challengepublic AuthPacket(int step, int status, java.util.Enumeration domains, int manner, Challenge challenge, Response response)
step
- step of authentication protocolstatus
- status of authentication protocoldomains
- security domain namesmanner
- authenticatoin manner by challenge-responsechallenge
- challenge for authenticationresponse
- response of challengepublic AuthPacket(java.io.DataInput di)
in
- data input stream for packetMethod Detail |
public final int getAuthManner()
protected final java.lang.String getAuthMannerField()
public final Challenge getChallenge()
protected final java.lang.String getChallengeField()
public final Response getResponse()
protected final java.lang.String getResponseField()
public final java.lang.String getSecurityDomain()
protected final java.lang.String getSecurityDomainField()
public final java.lang.String getSecurityDomainList()
public final java.util.Enumeration getSecurityDomains()
protected final java.lang.String getSecurityDomainsField()
public final java.lang.String getServerID()
protected final java.lang.String getServerIDField()
public final int getStatus()
protected final java.lang.String getStatusString()
public final int getStep()
protected final java.lang.String getStepString()
public static boolean isTopLine(java.lang.String line)
line
- line of protocolpublic void parseBody(java.io.DataInput di) throws java.io.IOException
in
- data input stream for packetpublic void parseTopLine(java.lang.String topLine) throws java.io.IOException
topLine
- top line of authentication protocolpublic void readFrom(java.io.DataInput di) throws java.io.IOException
in
- input stream for packetpublic void readFrom(java.lang.String topLine, java.io.DataInput di) throws java.io.IOException
topLine
- top line of packetin
- data input stream for packetpublic static int toAuthManner(java.lang.String manner)
manner
- string of authentication mannerpublic static int toAuthManner(java.lang.String manner, int defaultManner)
manner
- string of authentication mannerdefaultManner
- default authentication manner codepublic static java.lang.String toAuthMannerString(int manner)
manner
- authentication manner codepublic void writeTo(java.io.OutputStream out) throws java.io.IOException
out
- output stream for packet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |