Class TCCConnection
Object
|
+--TCCConnection
- class
TCCConnection
Class implementing a terminal control center web service connector
Defined in tccconnection.js
Constructor Summary |
TCCConnection(<String> url)
Creates a web service connector to access services of a terminal control center as defined in TR-03129
|
Method Summary |
void
|
close()
Close the connector and release allocated resources
|
CVC[]
|
getCertificateChain(<PublicKeyReference> keyNameMRTD)
Obtain a list of card verifiable certificates that can be used to provide the MRTD with a chain of certificates
up to and including the terminal certificate.
|
String
|
getLastError()
Get the last error return code
|
ByteString
|
getTASignature(<PublicKeyReference> keyCHR, <ByteString> digest)
Obtain a signature from the TCC for a hash or a block of data
|
ByteString
|
getTASignature2(idPICC, challengePICC, hashPK, <PublicKeyReference> keyCHR)
Obtain a signature from the TCC for a hash or a block of data
|
<static> void
|
test()
Perform a simple test
|
lastError
Object lastError
soapcon
Object soapcon
url
Object url
verbose
Object verbose
version
Object version
TCCConnection
TCCConnection(<String> url)
Creates a web service connector to access services of a terminal control center as defined in TR-03129
Parameters:
url
- the web service endpoint
close
void close()
Close the connector and release allocated resources
getCertificateChain
CVC[] getCertificateChain(<PublicKeyReference> keyNameMRTD)
Obtain a list of card verifiable certificates that can be used to provide the MRTD with a chain of certificates
up to and including the terminal certificate.
Parameters:
keyNameMRTD
- the certificate holder reference of the trust anchor used by the MRTD
Returns:
a lists of card verifiable certificates from root to terminal or null in case of error
getLastError
String getLastError()
Get the last error return code
Returns:
the last error return code received or null if none defined
getTASignature
ByteString getTASignature(<PublicKeyReference> keyCHR, <ByteString> digest)
Obtain a signature from the TCC for a hash or a block of data
Parameters:
keyCHR
- the key to be used for signing
digest
- the message digest or null if second variant is used
Returns:
the signature as a concatenation of coordinates on the curve or null in case of error
getTASignature2
ByteString getTASignature2(idPICC, challengePICC, hashPK, <PublicKeyReference> keyCHR)
Obtain a signature from the TCC for a hash or a block of data
Parameters:
keyCHR
- the key to be used for signing
digest
- the message digest or null if second variant is used
Returns:
the signature as a concatenation of coordinates on the curve or null in case of error
test
<static> void test()
Documentation generated by
JSDoc on Tue Sep 3 22:29:38 2013