com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI Interface Reference

This interface is used to expose the SSL attributes for all interfaces that are SSL enabled. More...

Inheritance diagram for com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI:
com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface com.pcbsys.nirvana.nAdminAPI.nSSLInterface

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 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...
 
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 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 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 providerName)
 Sets the name of the JSSE provider to use for the interface. 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...
 

Detailed Description

This interface is used to expose the SSL attributes for all interfaces that are SSL enabled.

If a class implements this interface it means that they support the listed API's and that SSL is active.

Member Function Documentation

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getAlias ( )

Returns the certificate name/alias that this interface uses as its primary certificate.

Returns
the Name/Alias of the certificate as a String
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

boolean com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.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.

Returns
a boolean specifying the SSL client authentication setting
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getCRLFile ( )

Returns the Certificate revocation list that the server uses.

Returns
the CRL file name that the interface uses

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.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.

Returns
current class name of the CRL validation

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

String [] com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getEnabledCiphers ( )

Returns an array of strings which represent the current Ciphers enabled for use by this interface.

Returns
a String[] containing the names of the ciphers enabled for use by this interface
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getKeyStore ( )

Returns the name of the keystore file that this interface uses to load the certificate from.

Returns
The name of the keystore file to use as a String
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getProvider ( )

Get the name of the JSSE provider used by this SSL interface.

Returns
The name of the JSSE provider being used for the interface

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getRandomAlgorithm ( )

Returns the SecureRandom algoritm used for this interface.

If it is null it uses the system default algorithm.

Returns
a String specifying the Random Algorithm used by this interface
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getRandomProvider ( )

Returns the SecureRandom provider used by this interface.

If it is null it uses the system default provider.

Returns
a String specifying the Secure Random provider used by this interface
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

String [] com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.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.

Returns
String[] of ciphers which can be configured for use by this interface
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

String com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.getTrustStore ( )

Returns the current truststore file that this interface uses to validate the client certificate chain against.

Returns
the Truststore file name as a String
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.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.

Parameters
aliasthe name/alias to use as a String
Exceptions
nAdminIllegalArgumentExceptionif an illegal argument is specified
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.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.

Parameters
requireda boolean specifying if this interface will force client authentication
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.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)

Parameters
fileNamethe CRL file name that the interface uses

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.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.

Parameters
classNamethe classname of the certificate validator to use within this interface

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setEnabledCiphers ( String[]  ciphers) throws nAdminIllegalArgumentException

Specifies the names of the ciphers enabled for use by this interface.

Parameters
ciphersa String[] of ciphers enabled for use by this interface
Exceptions
nAdminIllegalArgumentExceptionif an empty or null array is specified
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setKeyStore ( String  keyStore) throws nAdminIllegalArgumentException

Sets the keystore file that this interface uses to load the certificate from.

Parameters
keyStorethe new keystore name as a String
Exceptions
nAdminIllegalArgumentExceptionif an illegal argument is specified
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setKeyStorePassword ( String  keyStorePassword) throws nAdminIllegalArgumentException

Sets the keystore password that this interface will use to access the keystore file specified.

Parameters
keyStorePasswordthe new password as a string
Exceptions
nAdminIllegalArgumentExceptionif an illegal argument is specified
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setPrivateKeyPassword ( String  password) throws nAdminIllegalArgumentException

Sets the private key password so that the key can be loaded from the key store.

Parameters
passwordfor the private key as a String
Exceptions
nAdminIllegalArgumentExceptionif an illegal argument is specified
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setProvider ( String  providerName)

Sets the name of the JSSE provider to use for the interface.

Parameters
providerNamethe name of the JSSE provider to use

Implemented in com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface, and com.pcbsys.nirvana.nAdminAPI.nSSLInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setRandomAlgorithm ( String  alg)

Sets the SecureRandom algorithm to use for this interface.

Parameters
algthe name of the new SecureRandom algorithm to use
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setRandomProvider ( String  prov)

Sets the SecureRandom provider to use for this interface.

Parameters
provthe name of the new SecureRandom provider to use
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setTrustStore ( String  trustStore) throws nAdminIllegalArgumentException

Sets the truststore file that this interface uses to validate the client certificate against.

Parameters
trustStorethe new truststore file to use
Exceptions
nAdminIllegalArgumentExceptionif an illegal argument is specified
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.

void com.pcbsys.nirvana.nAdminAPI.nSSLInterfaceAPI.setTrustStorePassword ( String  trustStorePassword) throws nAdminIllegalArgumentException

Changes the truststore's password that the server uses to access the trust store.

Parameters
trustStorePasswordthe new password to use as a String
Exceptions
nAdminIllegalArgumentExceptionif an illegal argument is specified
See Also
nSSLInterface
nHTTPSInterface

Implemented in com.pcbsys.nirvana.nAdminAPI.nSSLInterface, and com.pcbsys.nirvana.nAdminAPI.nHTTPSInterface.