|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cybersource.ws.client.Signature
Contains the method that signs the requests.
| Constructor Summary | |
Signature()
|
|
| Method Summary | |
static com.cybersource.security.identity.Identity |
cacheIdentity(java.lang.String merchantID,
java.io.File keyFile)
Reads the identity for the given merchant from the pkcs12 file and adds it to the cache. |
static void |
initializeContext()
Initializes the context used by the security library. |
static org.w3c.dom.Document |
sign(java.lang.String merchantID,
java.io.File keyFile,
org.w3c.dom.Document doc)
Signs the given document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Signature()
| Method Detail |
public static org.w3c.dom.Document sign(java.lang.String merchantID,
java.io.File keyFile,
org.w3c.dom.Document doc)
throws SignException
merchantID - the merchant id.keyFile - File object representing the merchant's key file.doc - the document to sign.
SignException - if the signing fails for any reason. Its
inner exception will contain the actual exception.
public static void initializeContext()
throws SignException
SignException - if initialization fails.
public static com.cybersource.security.identity.Identity cacheIdentity(java.lang.String merchantID,
java.io.File keyFile)
throws SignException
merchantID - the merchant id.keyFile - File object representing the merchant's key file.
SignException - if the retrieval or caching of identity fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||