- com
- pcbsys
- nirvana
- nAdminAPI
- nHTTPSInterface
This class contains all the configuration required by the Nirvana Realm server to start and control the HTTPS interface. More...
Public Member Functions | |
String | getAlias () |
Returns the certificate name/alias that this interface uses as its primary certificate. More... | |
boolean | getCertRequired () |
Returns whether this interface requires SSL client authentication or not. More... | |
String | getCRLFile () |
Returns the Certificate revocation list that the server uses. More... | |
String | getCRLValidationClassName () |
Any class that extends com.pcbsys.nirvana.server.api.nSSLCertficateValidator can be used by the server to perform CRL management. More... | |
String[] | getEnabledCiphers () |
Returns an array of strings which represent the current Ciphers enabled for use by this interface. More... | |
String | getKeyStore () |
Returns the name of the keystore file that this interface uses to load the certificate from. More... | |
String | getPKCS11ConfigFile () |
String | getPKCS11NSSName () |
String | getProvider () |
Get the name of the JSSE provider used by this SSL interface. More... | |
String | getRandomAlgorithm () |
Returns the SecureRandom algoritm used for this interface. More... | |
String | getRandomProvider () |
Returns the SecureRandom provider used by this interface. More... | |
String[] | getSupportedCiphers () |
Returns an array of ciphers this this interface can be configured for use by this interface. More... | |
String | getTrustStore () |
Returns the current truststore file that this interface uses to validate the client certificate chain against. More... | |
nHTTPSInterface (String adapter, int port) throws nAdminIllegalArgumentException | |
Creates a new HTTPS interface bound to the adapter and port supplied. More... | |
nHTTPSInterface (String adapter, int port, boolean autostart) throws nAdminIllegalArgumentException | |
Creates a new HTTPS interface bound to the adapter and port supplied. More... | |
void | setAlias (String alias) throws nAdminIllegalArgumentException |
Sets the certificate name/alias that this interface will use to select its certificate from a keystore with multpiple entries. More... | |
void | setCertRequired (boolean required) |
Specifies whether this interface requires SSL client authentication or not. More... | |
void | setCRLFile (String fileName) |
Sets the Certificate revocation list file name that the interface should use to check the incomming ssl connections. More... | |
void | setCRLValidationClassName (String className) |
Any class that extends com.pcbsys.nirvana.server.api.nSSLCertficateValidator can be used by the server to perform CRL management. More... | |
void | setEnabledCiphers (String[] ciphers) throws nAdminIllegalArgumentException |
Specifies the names of the ciphers enabled for use by this interface. More... | |
void | setEnabledCiphers (String[] ciphers, boolean checkSupported) throws nAdminIllegalArgumentException |
Specifies the names of the ciphers enabled for use by this interface. More... | |
void | setKeyStore (String keyStore) throws nAdminIllegalArgumentException |
Sets the keystore file that this interface uses to load the certificate from. More... | |
void | setKeyStorePassword (String keyStorePassword) throws nAdminIllegalArgumentException |
Sets the keystore password that this interface will use to access the keystore file specified. More... | |
void | setPKCS11ConfigFile (String location) |
void | setPKCS11NSSName (String name) |
void | setPrivateKeyPassword (String password) throws nAdminIllegalArgumentException |
Sets the private key password so that the key can be loaded from the key store. More... | |
void | setProvider (String provider) |
Set the name of the JSSE provider to use. More... | |
void | setRandomAlgorithm (String alg) |
Sets the SecureRandom algorithm to use for this interface. More... | |
void | setRandomProvider (String prov) |
Sets the SecureRandom provider to use for this interface. More... | |
void | setTrustStore (String trustStore) throws nAdminIllegalArgumentException |
Sets the truststore file that this interface uses to validate the client certificate against. More... | |
void | setTrustStorePassword (String trustStorePassword) throws nAdminIllegalArgumentException |
Changes the truststore's password that the server uses to access the trust store. More... | |
Public Member Functions inherited from com.pcbsys.nirvana.nAdminAPI.nHTTPInterface | |
void | enabled_HTTP_1_1 (boolean flag) |
set the use of HTTP1.1 More... | |
void | enabledWebSockets (boolean flag) |
Sets the use of WebSockets. More... | |
Long | getAjaxLPActiveDelay () |
Returns the time to wait (for additional events) before delivering to Long Poll style subscribers. More... | |
Long | getAjaxLPIdleDelay () |
Returns the time to wait before returning from a Long Poll call if no events have been received. More... | |
String | getAllowedOrigins () |
Returns the currently set allowed origins for CORS. More... | |
ArrayList< nCustomHeader > | getCustomHeaders () |
Returns a ArrayList of nCustomHeader which will be sent to javascript clients. More... | |
int | getMinimumBytesBeforeGZIP () |
The minimum number of bytes in a packet before GZIP is enabled, default 1000. More... | |
Vector | getPlugin () |
Get the name of the plugin to use. More... | |
boolean | isAllowCrossOriginCredentials () |
This allows credentials header to be sent with CORS requests. More... | |
boolean | isEnableGZIP () |
Enable GZIP compression for javascript longpoll connections. More... | |
boolean | isHTTP_1_1_Enabled () |
Returns true if HTTP 1.1 is enabled. | |
boolean | isNativeCometAllowed () |
Returns whether this interface has javascript enabled or not. More... | |
boolean | isWebSocketEnabled () |
Returns true if WebSockets are enabled. | |
nHTTPInterface (String adapter, int port) throws nAdminIllegalArgumentException | |
Creates a HTTP interface on the supplied adapter:port. More... | |
nHTTPInterface (String adapter, int port, boolean autostart) throws nAdminIllegalArgumentException | |
Creates a HTTP interface on the supplied adapter:port with the supplied autostart flag. More... | |
void | setAjaxLPActiveDelay (Long ajaxLPActiveDelay) |
Sets the time to wait (for additional events) before delivering to Long Poll style subscribers. More... | |
void | setAjaxLPIdleDelay (Long ajaxLPIdleDelay) |
Set the time to wait before returning from a Long Poll call if no events have been received. More... | |
void | setAllowCrossOriginCredentials (boolean myAllowCrossOriginCredentials) |
Set to true to send the allow credentails header to be sent with CORS requests. More... | |
void | setAllowedOrigins (String allowedOrigins) |
Sets the Allowed Origins for CORS. More... | |
void | setCustomHeaders (ArrayList< nCustomHeader > customHeaders) |
Sets the custom headers that will be sent to javascript clients. More... | |
void | setEnableGZIP (boolean enableGZIP) |
Sets whether or not GZIP compression is enabled for javascript longpoll connections. More... | |
void | setMinimumBytesBeforeGZIP (int minimumBytesBeforeGZIP) |
The minimum number of bytes in a packet before GZIP is enabled, default 1000. More... | |
void | setNativeCometAllowed (boolean nativeCometAllowed) |
Sets whether javascript is enabled on the interface. More... | |
void | setPlugin (Vector config) |
Get the name of the plugin to use. More... | |
void | setThreadCount (int count) throws nAdminIllegalArgumentException |
Changes the thread pool size handling the client connections, specifically the processing of HTTP headers and preparing the payload. More... | |
Public Member Functions inherited from com.pcbsys.nirvana.nAdminAPI.nInterface | |
boolean | canAdvertise () |
Will this interface be used by other realms to send client redirects to. More... | |
String | getAdapaterAlias () |
Returns the interfaces known alias's. More... | |
int | getAuthTimeOut () |
Returns the number of milliseconds that the remote client has to authenticate with the server before the server closes the communications with the client. More... | |
int | getBacklog () |
The number of socket connect requests that the Operating System will queue before sending a reject to the remote client. More... | |
String | getProtocol () |
Returns the protocol string used by this interface. More... | |
int | getRecvBufferSize () |
Return the socket buffer size in bytes used by this interface when receiving data. More... | |
int | getSelectThreadSize () |
Returns the number of select threads used by NIO. More... | |
int | getSendBufferSize () |
Return the socket buffer size in bytes used by this interface when sending data. More... | |
int | getThreadCount () |
Returns the current Thread Pool size that handles client socket connections. More... | |
nACL | getViaList () |
Retrieves the interfaces Via list. More... | |
boolean | isAllowNIO () |
Returns whether NIO is enabled on this interface. More... | |
boolean | isClientConnectionsAllowed () |
Returns whether this interface can be used by clients to connect. More... | |
boolean | isInterRealmAllow () |
Returns whether this interface is allowed to be used in inter realm / cluster communication. More... | |
void | setAdapterAlias (String alias) |
Sets the interfaces alias. More... | |
void | setAdvertise (boolean flag) |
Change the current advertise status for this interface. More... | |
void | setAllowClientConnections (boolean clientconnections) |
Sets whether this interface can accept client connections or not. More... | |
void | setAllowNIO (boolean allowNIO) |
Set whether NIO is enabled on the interface. More... | |
void | setAuthTimeOut (int timeout) throws nAdminIllegalArgumentException |
Changes the number of milliseconds that the remote client has to authenticate with the server. More... | |
void | setBacklog (int backlog) throws nAdminIllegalArgumentException |
Changes the number of connections to queue before the Operating System will send rejects to the remote client. More... | |
void | setInterRealmAllow (boolean interealmAllow) |
Sets whether this interface is allowed to be used in inter realm / cluster communication. More... | |
void | setManager (nInterfaceManager im) |
Set the Interface Manager. More... | |
void | setRecvBufferSize (int myRecvBufferSize) |
Set the socket buffer size in bytes used by this interface when receiving data. More... | |
void | setSelectThreadSize (int selectThreadSize) |
Sets the number of select threads used by NIO. More... | |
void | setSendBufferSize (int mySendBufferSize) |
Set the socket buffer size in bytes used by this interface when sending data. More... | |
void | setThreadCount (int count) throws nAdminIllegalArgumentException |
Changes the thread pool size handling the client connections. More... | |
void | setUseForProxyForward (boolean useForproxyForward) |
Set if ProxyForwarding is to be used. More... | |
void | setViaList (nACL acl) throws nInsufficientPrivilegesException, nNodeException, nBaseAdminException |
Commits the nACL object passed in with the Realm Server. More... | |
String | toString () |
Return a string representation of the interface details. More... | |
boolean | useForProxyForward () |
Returns true if proxy forwarding is enabled. More... | |
Public Member Functions inherited from com.pcbsys.nirvana.nAdminAPI.nBaseInterface | |
String | getAdapter () |
Get the adapter that this interface will use. More... | |
String | getName () |
Get the name of this interface. More... | |
int | getPort () |
Get the port that this interface will bind to at startup. More... | |
String | getURL () |
Get the URL that specifies this interface. More... | |
void | setAutostart (boolean flag) |
Change the current Autostart status for this interface. More... | |
boolean | willAutostart () |
Will this interface automatically be started when the Realm Server starts. More... | |
This class contains all the configuration required by the Nirvana Realm server to start and control the HTTPS interface.
com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.nHTTPSInterface | ( | String | adapter, |
int | port | ||
) | throws nAdminIllegalArgumentException |
Creates a new HTTPS interface bound to the adapter and port supplied.
adapter | to bind to |
port | to bind to |
com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.nHTTPSInterface | ( | String | adapter, |
int | port, | ||
boolean | autostart | ||
) | throws nAdminIllegalArgumentException |
Creates a new HTTPS interface bound to the adapter and port supplied.
adapter | to bind to |
port | to bind to |
autostart | Shoud it be autostarted |
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getAlias | ( | ) |
Returns the certificate name/alias that this interface uses as its primary certificate.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
boolean com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getCertRequired | ( | ) |
Returns whether this interface requires SSL client authentication or not.
If this is set to false then this interface allows anonymous connections using SSL. Otherwise the client must have and present a valid certificate chain during the SSL handshake.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getCRLFile | ( | ) |
Returns the Certificate revocation list that the server uses.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getCRLValidationClassName | ( | ) |
Any class that extends com.pcbsys.nirvana.server.api.nSSLCertficateValidator can be used by the server to perform CRL management.
The class name can be supplied per interface and then when a client connects a callout is issued to this class to validate the connection.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String [] com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getEnabledCiphers | ( | ) |
Returns an array of strings which represent the current Ciphers enabled for use by this interface.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getKeyStore | ( | ) |
Returns the name of the keystore file that this interface uses to load the certificate from.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getPKCS11ConfigFile | ( | ) |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getPKCS11NSSName | ( | ) |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getProvider | ( | ) |
Get the name of the JSSE provider used by this SSL interface.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getRandomAlgorithm | ( | ) |
Returns the SecureRandom algoritm used for this interface.
If it is null it uses the system default algorithm.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getRandomProvider | ( | ) |
Returns the SecureRandom provider used by this interface.
If it is null it uses the system default provider.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String [] com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getSupportedCiphers | ( | ) |
Returns an array of ciphers this this interface can be configured for use by this interface.
If the cipher is not in this list then the interface can not support it.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
String com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.getTrustStore | ( | ) |
Returns the current truststore file that this interface uses to validate the client certificate chain against.
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setAlias | ( | String | alias | ) | throws nAdminIllegalArgumentException |
Sets the certificate name/alias that this interface will use to select its certificate from a keystore with multpiple entries.
alias | the name/alias to use as a String |
nAdminIllegalArgumentException | if an illegal argument is specified |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setCertRequired | ( | boolean | required | ) |
Specifies whether this interface requires SSL client authentication or not.
If this is set to false then this interface allows anonymous connections using SSL. Otherwise the client must have and present a valid certificate chain during the SSL handshake.
required | a boolean specifying if this interface will force client authentication |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setCRLFile | ( | String | fileName | ) |
Sets the Certificate revocation list file name that the interface should use to check the incomming ssl connections.
Is only used when client certificates are required. The file should be in a standard X.509 Certificate Revocation List (CRL)
fileName | the full path of the CRL file to use |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setCRLValidationClassName | ( | String | className | ) |
Any class that extends com.pcbsys.nirvana.server.api.nSSLCertficateValidator can be used by the server to perform CRL management.
The class name can be supplied per interface and then when a client connects a callout is issued to this class to validate the connection.
className | the classname of the certificate validator to use within this interface |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setEnabledCiphers | ( | String[] | ciphers | ) | throws nAdminIllegalArgumentException |
Specifies the names of the ciphers enabled for use by this interface.
ciphers | a String[] of ciphers enabled for use by this interface |
nAdminIllegalArgumentException | if an empty or null array is specified |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setEnabledCiphers | ( | String[] | ciphers, |
boolean | checkSupported | ||
) | throws nAdminIllegalArgumentException |
Specifies the names of the ciphers enabled for use by this interface.
ciphers | a String[] of ciphers enabled for use by this interface |
checkSupported | a boolean to indicate whether to validate the list against those ciphers supported by the server |
nAdminIllegalArgumentException | if an empty or null array is specified |
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setKeyStore | ( | String | keyStore | ) | throws nAdminIllegalArgumentException |
Sets the keystore file that this interface uses to load the certificate from.
keyStore | the new keystore name as a String |
nAdminIllegalArgumentException | if an illegal argument is specified |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setKeyStorePassword | ( | String | keyStorePassword | ) | throws nAdminIllegalArgumentException |
Sets the keystore password that this interface will use to access the keystore file specified.
keyStorePassword | the new password as a string |
nAdminIllegalArgumentException | if an illegal argument is specified |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setPKCS11ConfigFile | ( | String | location | ) |
config | is the location of the NSS configuration file on the file system |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setPKCS11NSSName | ( | String | name | ) |
name | is the unique identifier in the NSS configuration file for identification purposes |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setPrivateKeyPassword | ( | String | password | ) | throws nAdminIllegalArgumentException |
Sets the private key password so that the key can be loaded from the key store.
password | for the private key as a String |
nAdminIllegalArgumentException | if an illegal argument is specified |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setProvider | ( | String | provider | ) |
Set the name of the JSSE provider to use.
provider | the name of the JSSE provider to use |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setRandomAlgorithm | ( | String | alg | ) |
Sets the SecureRandom algorithm to use for this interface.
alg | the name of the new SecureRandom algorithm to use |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setRandomProvider | ( | String | prov | ) |
Sets the SecureRandom provider to use for this interface.
prov | the name of the new SecureRandom provider to use |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setTrustStore | ( | String | trustStore | ) | throws nAdminIllegalArgumentException |
Sets the truststore file that this interface uses to validate the client certificate against.
trustStore | the new truststore file to use |
nAdminIllegalArgumentException | if an illegal argument is specified |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.
void com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.setTrustStorePassword | ( | String | trustStorePassword | ) | throws nAdminIllegalArgumentException |
Changes the truststore's password that the server uses to access the trust store.
trustStorePassword | the new password to use as a String |
nAdminIllegalArgumentException | if an illegal argument is specified |
Implements com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.