|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.aocat.psis.client.base.AbstractSample
public class AbstractSample
Abstract sample.
| Field Summary | |
|---|---|
protected PsisClientFactory |
factory
|
protected org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
AbstractSample()
Init sample. |
|
| Method Summary | |
|---|---|
protected boolean |
isResultWellFormed(x0CoreSchema.oasisNamesTcDss1.SignResponseDocument response)
Validates if PSIS sign response has a Result field or not. |
protected boolean |
isResultWellFormed(x0CoreSchema.oasisNamesTcDss1.VerifyResponseDocument response)
Validates if PSIS verify response has a Result field or not. |
protected void |
printSaveRequest(boolean PRINT_REQUEST,
x0CoreSchema.oasisNamesTcDss1.SignRequestDocument request,
boolean SAVE_REQUEST,
java.lang.String OUT_DIR,
java.lang.String SIGN_REQUEST)
Logs and saves PSIS sign request to a file. |
protected void |
printSaveRequest(boolean PRINT_REQUEST,
x0CoreSchema.oasisNamesTcDss1.VerifyRequestDocument request,
boolean SAVE_REQUEST,
java.lang.String OUT_DIR,
java.lang.String VERIFY_REQUEST)
Logs and saves PSIS verify request to a file. |
protected void |
printSaveResponse(boolean PRINT_RESPONSE,
x0CoreSchema.oasisNamesTcDss1.SignResponseDocument response,
boolean SAVE_RESPONSE,
java.lang.String OUT_DIR,
java.lang.String SIGN_RESPONSE)
Logs and saves PSIS sign response to a file. |
protected void |
printSaveResponse(boolean PRINT_RESPONSE,
x0CoreSchema.oasisNamesTcDss1.VerifyResponseDocument response,
boolean SAVE_RESPONSE,
java.lang.String OUT_DIR,
java.lang.String VERIFY_RESPONSE)
Logs and saves PSIS verify response to a file. |
protected void |
showResult(x0CoreSchema.oasisNamesTcDss1.ResultDocument.Result result)
Prints PSIS response's Result field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.log4j.Logger log
protected PsisClientFactory factory
| Constructor Detail |
|---|
public AbstractSample()
| Method Detail |
|---|
protected boolean isResultWellFormed(x0CoreSchema.oasisNamesTcDss1.VerifyResponseDocument response)
response - verify response from PSIS
protected boolean isResultWellFormed(x0CoreSchema.oasisNamesTcDss1.SignResponseDocument response)
response - sign response from PSIS
protected void showResult(x0CoreSchema.oasisNamesTcDss1.ResultDocument.Result result)
result - PSIS response's result field
protected void printSaveRequest(boolean PRINT_REQUEST,
x0CoreSchema.oasisNamesTcDss1.VerifyRequestDocument request,
boolean SAVE_REQUEST,
java.lang.String OUT_DIR,
java.lang.String VERIFY_REQUEST)
throws java.io.IOException
PRINT_REQUEST - true if print request requiredrequest - PSIS verify requestSAVE_REQUEST - true if save request requiredOUT_DIR - directory where to save the requestVERIFY_REQUEST - name of the file where to save the request
java.io.IOException
protected void printSaveResponse(boolean PRINT_RESPONSE,
x0CoreSchema.oasisNamesTcDss1.VerifyResponseDocument response,
boolean SAVE_RESPONSE,
java.lang.String OUT_DIR,
java.lang.String VERIFY_RESPONSE)
throws java.io.IOException
PRINT_RESPONSE - true if print response requiredresponse - PSIS verify responseSAVE_RESPONSE - true if save response requiredOUT_DIR - directory where to save the responseVERIFY_RESPONSE - name of the file where to save the response
java.io.IOException
protected void printSaveRequest(boolean PRINT_REQUEST,
x0CoreSchema.oasisNamesTcDss1.SignRequestDocument request,
boolean SAVE_REQUEST,
java.lang.String OUT_DIR,
java.lang.String SIGN_REQUEST)
throws java.io.IOException
PRINT_REQUEST - true if print request requiredrequest - PSIS sign requestSAVE_REQUEST - true if save request requiredOUT_DIR - directory where to save the requestSIGN_REQUEST - name of the file where to save the request
java.io.IOException
protected void printSaveResponse(boolean PRINT_RESPONSE,
x0CoreSchema.oasisNamesTcDss1.SignResponseDocument response,
boolean SAVE_RESPONSE,
java.lang.String OUT_DIR,
java.lang.String SIGN_RESPONSE)
throws java.io.IOException
PRINT_RESPONSE - true if print response requiredresponse - PSIS sign responseSAVE_RESPONSE - true if save response requiredOUT_DIR - directory where to save the responseSIGN_RESPONSE - name of the file where to save the response
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||