|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.atp.auth.Authentication
The Authentication class is the authentication protocol class.
Constructor Summary | |
Authentication(int turn,
java.io.DataInput di,
java.net.Socket socket)
Default constructor creates an challenge-response authentication protocol handler. |
|
Authentication(int turn,
java.io.DataInput di,
java.net.Socket socket,
int manner)
Constructor creates an challenge-response authentication protocol handler. |
Method Summary | |
boolean |
authenticate()
Process authentication protocol. |
int |
getAuthManner()
Returns authentication manner |
java.io.DataInput |
getDataInput()
Returns data input of packet |
java.net.InetAddress |
getLocalAddress()
Returns local IP address of socket to be connected/bound |
java.io.OutputStream |
getOutputStream()
Returns output stream of socket to be connected/bound |
java.net.InetAddress |
getRemoteAddress()
Returns remote IP address of socket to be connected/bound |
java.lang.String |
getSelectedDomainName()
Returns selected security domain name. |
SharedSecret |
getSelectedSecret()
Returns shared secret for selected security domain. |
java.net.Socket |
getSocket()
Returns socket to be connected/bound. |
int |
getTurn()
Returns turn of protocol. |
boolean |
isAuthenticatedMyself()
|
boolean |
isAuthenticatedOpponent()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Authentication(int turn, java.io.DataInput di, java.net.Socket socket)
turn
- turn of protocoldi
- data input of packetsocket
- socket to be connected/boundpublic Authentication(int turn, java.io.DataInput di, java.net.Socket socket, int manner)
turn
- turn of protocoldi
- data input of packetsocket
- socket to be connected/boundmanner
- challenge-response authentication mannerMethod Detail |
public final boolean authenticate() throws AuthenticationProtocolException, java.io.IOException
AuthenticationProtocolException
- incorrect protocoljava.io.IOException
- public final int getAuthManner()
public final java.io.DataInput getDataInput()
public final java.net.InetAddress getLocalAddress()
public final java.io.OutputStream getOutputStream()
public final java.net.InetAddress getRemoteAddress()
public final java.lang.String getSelectedDomainName()
public final SharedSecret getSelectedSecret()
public final java.net.Socket getSocket()
public final int getTurn()
public boolean isAuthenticatedMyself()
public boolean isAuthenticatedOpponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |