
public class Nar extends Object
| Modifier and Type | Field and Description |
|---|---|
private de.hsbremen.tc.tnc.tnccs.client.ClientFacade |
client |
private de.hsbremen.tc.tnc.transport.TransportConnection |
connection |
private org.ietf.nea.pt.socket.simple.DefaultSocketTransportConnectionBuilder |
connectionBuilder |
private static long |
FILE_CHECK_INTERVAL |
private static org.slf4j.Logger |
LOGGER |
private de.hsbremen.tc.tnc.tnccs.im.manager.ImcManager |
manager |
private static long |
MAX_MSG_SIZE |
private static long |
MAX_ROUND_TRIP |
private de.hsbremen.tc.tnc.tnccs.im.loader.ConfigurationFileChangeMonitor |
monitor |
private static long |
SESSION_CLEAN_INTERVAL |
private Socket |
socket |
| Constructor and Description |
|---|
Nar()
Creates the NAR using default values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
loadImc(List<org.trustedcomputinggroup.tnc.ifimc.IMC> imcs)
Imports a list of IMC to the manager and initializes them.
|
void |
loadImcFromConfigurationFile(File file)
Creates a file monitor to load IMC using a configuration file.
|
void |
start()
Starts the NAR.
|
void |
startHandshake(String host,
int port)
Starts a new integrity handshake.
|
void |
stop()
Stops the NAR.
|
void |
stopHandshake()
Stops a handshake.
|
private static final org.slf4j.Logger LOGGER
private static final long MAX_MSG_SIZE
private static final long MAX_ROUND_TRIP
private static final long SESSION_CLEAN_INTERVAL
private static final long FILE_CHECK_INTERVAL
private de.hsbremen.tc.tnc.tnccs.client.ClientFacade client
private de.hsbremen.tc.tnc.tnccs.im.manager.ImcManager manager
private de.hsbremen.tc.tnc.tnccs.im.loader.ConfigurationFileChangeMonitor monitor
private org.ietf.nea.pt.socket.simple.DefaultSocketTransportConnectionBuilder connectionBuilder
private Socket socket
private de.hsbremen.tc.tnc.transport.TransportConnection connection
public void start()
public void loadImcFromConfigurationFile(File file)
file - the configuration filepublic void loadImc(List<org.trustedcomputinggroup.tnc.ifimc.IMC> imcs)
imcs - the list of IMCpublic void startHandshake(String host, int port) throws IOException
host - the address of an NAAport - the port of an NAAIOException - if connection attempt failspublic void stopHandshake()
throws IOException
IOException - if the connection cannot be closed properlypublic void stop()
Copyright © 2016, Trust HS Bremen and its Contributors