public class SocketConnector extends Object implements Connector
The protocol basically assumes a listener process on a TSA that can accept TSA messages on a well-defined port (IP port number 318).
Typically an initiator binds to this port and submits the initial TSA message. The responder replies with a TSA message and/or with a reference number to be used later when polling for the actual TSA message response.
If a number of TSA response messages are to be produced for a given request (say if a receipt must be sent before the actual token can be produced) then a new polling reference is also returned.
When the final TSA response message has been picked up by the initiator then no new polling reference is supplied.
| Constructor and Description |
|---|
SocketConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
connect(byte[] content) |
void |
setHostname(String hostname) |
void |
setPort(int port) |
public InputStream connect(byte[] content) throws CertificateCoreException
connect in interface ConnectorCertificateCoreExceptionpublic void setHostname(String hostname)
setHostname in interface ConnectorCopyright © 2022 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.