EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
Constructor and Description |
---|
SSLCommProps()
Creates the socket property container without a name.
|
SSLCommProps(Atom propertyAtom)
Creates the socket property container with the specified name.
|
Modifier and Type | Method and Description |
---|---|
SSLCommProps |
clone()
Clones the settings.
|
SSLEngine |
createClientSSLEngine(String serverDescription)
Creates a Client SSL Engine for the NIO socket communication initialized with these parameters.
|
ICertificateUI |
getCallback()
Gets the callback assigned to the properties.
|
boolean |
getClientCertificateDeploymentInfo()
Gets Client Certificates using the JRE deployment information.
|
String |
getClientCertificateDescription()
Gets the Client Certificate description.
|
KeyManager[] |
getClientCertificateKeyManagers(String serverDescription,
char[] password,
ICertificateUI callback)
Gets the keystore for the Client Certificate.
|
boolean |
getServerAuthentication()
Gets server authentication globally.
|
boolean |
getServerAuthenticationCallback()
Gets server authentication using callback interface
com.iizix.nio.ICertificateUI . |
X509Certificate[] |
getServerAuthenticationCertificates()
Gets the Server Authentication certificates.
|
boolean |
getServerAuthenticationDeploymentInfo()
Gets server authentication using the JRE deployment information.
|
boolean |
getStrongCipher()
Gets strong cipher encryption requirement, 128 bits or more.
|
boolean |
hasSavedClientCertificatePassword()
Checks if the password is saved for the Client Certificate.
|
static void |
resetServerCertificates()
Resets the accepted or rejected certificates.
|
void |
setCallback(ICertificateUI callback)
Assigns the callback interface to this instance of the properties.
|
void |
setClientCertificate(String fileName,
char[] password,
boolean doSavePassword)
Sets or removed the Client Certificate.
|
void |
setClientCertificateDeploymentInfo(boolean on)
Sets Client Certificates using the JRE deployment information.
|
void |
setHostName(String hostName)
Assigns the Host Name once a session has been established with a socket.
|
void |
setServerAuthentication(boolean on)
Sets server authentication globally.
|
void |
setServerAuthenticationCallback(boolean on)
Sets server authentication using callback interface
com.iizix.nio.ICertificateUI . |
void |
setServerAuthenticationCertificates(X509Certificate[] certificates)
Sets or removes server authentication using the specified certificates.
|
void |
setServerAuthenticationDeploymentInfo(boolean on)
Sets server authentication using the JRE deployment information.
|
void |
setStrongCipher(boolean on)
Sets strong cipher encryption requirement, 128 bits or more.
|
boolean |
useClientCertificate()
Checks a Client Certificate is used.
|
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, doVirtualizePropCnr, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, paramString, prepare, removeAllProps, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualize
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, onVirtualizationCompleted, onVirtualized, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
getClass, hashCode, notify, notifyAll, wait, wait, wait
canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
public SSLCommProps()
setPropertyAtom
call.public SSLCommProps(Atom propertyAtom)
propertyAtom
- the name of the component, unique within it's parent.public static void resetServerCertificates()
public SSLCommProps clone()
public void setStrongCipher(boolean on)
on
- The enablement flag.public boolean getStrongCipher()
public void setServerAuthentication(boolean on)
on
- The enablement flag.public boolean getServerAuthentication()
public void setServerAuthenticationCallback(boolean on)
com.iizix.nio.ICertificateUI
.on
- The enablement flag.public boolean getServerAuthenticationCallback()
com.iizix.nio.ICertificateUI
.public void setServerAuthenticationDeploymentInfo(boolean on)
on
- The enablement flag.public boolean getServerAuthenticationDeploymentInfo()
public void setServerAuthenticationCertificates(X509Certificate[] certificates) throws PropException, CertificateException
certificates
- The certificates to accept, or null to remove certificate verification.PropException
- If the property cannot be removed, set or added.CertificateEncodingException
- If an encoding error occurs.CertificateException
public X509Certificate[] getServerAuthenticationCertificates() throws CertificateException
CertificateException
- If no Provider supports a CertificateFactorySpi implementation for the specified type when
creating the Certificate Factory, or when the certificate is initialized from the data.public void setClientCertificateDeploymentInfo(boolean on)
on
- The enablement flag.public boolean getClientCertificateDeploymentInfo()
public void setClientCertificate(String fileName, char[] password, boolean doSavePassword) throws PropException, FileNotFoundException, KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, UnrecoverableKeyException
fileName
- The file name of the PKCS#12 file, DER encoded, null to remove client certificate.password
- The password, or null for none.doSavePassword
- Flag to save the password. The password is saved "garbled" but not safe for "de-garbling", use with care.PropException
- If the property cannot be removed, set or added.FileNotFoundException
- If the file is not found.NoSuchAlgorithmException
- If the algorithm used to check the integrity of the keystore cannot be found.CertificateException
- If any of the certificates in the keystore could not be loaded.IOException
- If there is an I/O or format problem with the keystore data, if a password is required but not given,
or if the given password was incorrect. If the error is due to a wrong password, the cause of
the IOException should be an UnrecoverableKeyException.UnrecoverableKeyException
- If the key cannot be recovered (e.g. the given password is wrong).KeyStoreException
public boolean useClientCertificate()
public String getClientCertificateDescription()
public boolean hasSavedClientCertificatePassword()
public KeyManager[] getClientCertificateKeyManagers(String serverDescription, char[] password, ICertificateUI callback) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, UnrecoverableKeyException
If no password
or callback
is set and the password is not saved,
an error will be thrown.
serverDescription
- The server description.password
- The password, or null for none.callback
- The callback to request the password from the user, null for none.KeyStoreException
- If no Provider supports a KeyStoreSpi implementation for the PKCS#12 type.NoSuchAlgorithmException
- If the algorithm used to check the integrity of the keystore cannot be found.CertificateException
- If any of the certificates in the keystore could not be loaded.IOException
- If there is an I/O or format problem with the keystore data, if a password is required but not given,
or if the given password was incorrect. If the error is due to a wrong password, the cause of
the IOException should be an UnrecoverableKeyException.UnrecoverableKeyException
- If the key cannot be recovered (e.g. the given password is wrong).public SSLEngine createClientSSLEngine(String serverDescription) throws NoSuchAlgorithmException, CertificateException, IOException, UnrecoverableKeyException, KeyStoreException, NoSuchProviderException, KeyManagementException
serverDescription
- The server description.KeyStoreException
- If no Provider supports a KeyStoreSpi implementation for the PKCS#12 type.NoSuchAlgorithmException
- If the algorithm used to check the integrity of the keystore cannot be found.CertificateException
- If any of the certificates in the keystore could not be loaded.IOException
- If there is an I/O or format problem with the keystore data, if a password is required but not given,
or if the given password was incorrect. If the error is due to a wrong password, the cause of
the IOException should be an UnrecoverableKeyException.UnrecoverableKeyException
- If the key cannot be recovered (e.g. the given password is wrong).NoSuchProviderException
KeyManagementException
public void setHostName(String hostName)
public void setCallback(ICertificateUI callback)
public ICertificateUI getCallback()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.