|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.psu.its.twofactor.ncPassProtocol
public class ncPassProtocol
Methods for building and parsing messages sent to and received from the NCPASS TLI interface for the purpose of validating RSA SecureID tokens.
| Constructor Summary | |
|---|---|
ncPassProtocol()
Sole Constructor, generates a six digit random transaction ID and stores it in a String |
|
| Method Summary | |
|---|---|
byte[] |
buildHandShake(java.lang.String appID)
Builds the NCPASS TLI handshake. |
byte[] |
buildRequest(java.lang.String userID,
java.lang.String secureID)
Builds the NCPASS TLI query for authenticating an RSA SecureID token / UserID pair. |
java.util.Hashtable |
decodeHandshake(byte[] handshake)
Decodes the NCPASS TLI handshake response and returns a hashtable containing all of the returned data fields. |
java.util.Hashtable |
decodeResponse(byte[] response)
Decodes the NCPASS query response and returns a hashtable containing all of the returned data fields. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ncPassProtocol()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException| Method Detail |
|---|
public byte[] buildHandShake(java.lang.String appID)
throws java.io.UnsupportedEncodingException,
java.io.IOException
String - appID
java.io.UnsupportedEncodingException
java.io.IOException
public java.util.Hashtable decodeHandshake(byte[] handshake)
throws java.io.UnsupportedEncodingException
byte[] - handshake - byte array containing handshake response from
NCPASS
java.io.UnsupportedEncodingException
public java.util.Hashtable decodeResponse(byte[] response)
throws java.io.UnsupportedEncodingException
byte[]response - -
byte array containing NCPASS query response
java.io.UnsupportedEncodingException
public byte[] buildRequest(java.lang.String userID,
java.lang.String secureID)
throws java.io.UnsupportedEncodingException,
java.io.IOException
String - userID containing the user's principal nameString - secureID containing the SecureID number
java.io.UnsupportedEncodingException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||