public class SslNetCotPort
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SslNetCotPort.Type |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
SslNetCotPort() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getServerApiPath(SslNetCotPort.Type type)
Returns ":
|
static int |
getServerApiPort(SslNetCotPort.Type type)
The port based on the type requested.
|
static void |
setCertEnrollmentApiPort(int port)
The cert enrollment api port to use by TAK.
|
static void |
setSecureServerApiPort(int port)
The secure server api port to use by TAK.
|
static void |
setUnsecureServerApiPort(int port)
The unsecure server api port to use by TAK.
|
public static final java.lang.String TAG
public static void setUnsecureServerApiPort(int port)
port
- the port number to use when performing insecure communicationspublic static void setSecureServerApiPort(int port)
port
- the port number to use when performing secure communicationspublic static void setCertEnrollmentApiPort(int port)
port
- the cert enrollment port number to use when performing certificate enrollmentpublic static int getServerApiPort(SslNetCotPort.Type type)
type
- the type which is one of SERVER_API_PORT_SECURE, SERVER_API_PORT_UNSECURE,
or SERVER_API_PORT_CERT_ENROLLMENT.public static java.lang.String getServerApiPath(SslNetCotPort.Type type)
type
- the server API path based on he type which is one of SERVER_API_PORT_SECURE,
SERVER_API_PORT_UNSECURE, or SERVER_API_PORT_CERT_ENROLLMENT.