Package com.iizix.prop
Class X509CertificatesProp
- java.lang.Object
- com.iizix.prop.GProp<byte[]>
- com.iizix.prop.ByteArrayProp
- com.iizix.prop.X509CertificatesProp
- All Implemented Interfaces:
EventListener
,IGProp<byte[]>
,java.lang.Cloneable
public class X509CertificatesProp extends ByteArrayProp
The X.509 Certificates Property used for SSL communication.- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizix.prop.GProp
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
Fields inherited from interface com.iizix.prop.IGProp
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 Summary
Constructors Modifier Constructor Description protected
X509CertificatesProp()
Creates a byte array property with the specified name with a null value.X509CertificatesProp(Atom propertyAtom)
Creates a byte array property with the specified name with a null value.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.X509Certificate[]
getCertificates()
Gets the certificates.boolean
setCertificates(java.security.cert.X509Certificate[] certificates)
Sets the certificates.boolean
setPropValue(byte[] newValue)
Sets a new value for this property.Methods inherited from class com.iizix.prop.ByteArrayProp
appendPropValue, clone, fromElementString, getByteArray, getPropValue0, getValueClasses, initializeValue, modifyPropValue, toElementString, toNativeValue0, validatePropType
Methods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalsTree, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferences, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeElement, initializeGElement, initializeGProp, initializeProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, 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, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropDispose, onPropInvalidateCache, onPropParentChanged, onPropTreeInitialized, onPropValueSet, onReferenceEvent, onRemoteEvent, onVirtualizationCompleted, onVirtualized, paramString, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setCreateRequiredProp, 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, validatePropValue, verify, verifyHasPropertyItem, virtualize, warning, warning, warning
Constructor Detail
X509CertificatesProp
protected X509CertificatesProp()
Creates a byte array property with the specified name with a null value.
X509CertificatesProp
public X509CertificatesProp(Atom propertyAtom)
Creates a byte array property with the specified name with a null value.- Parameters:
propertyAtom
- the property atom.
Method Detail
setPropValue
public boolean setPropValue(byte[] newValue)
Sets a new value for this property. If any listener is present and the value has changed compare to the last value, the listener is informed.- Overrides:
setPropValue
in classByteArrayProp
- Parameters:
newValue
- the new value.- Returns:
- boolean true for value has changed, false for same value as current value.
setCertificates
public boolean setCertificates(java.security.cert.X509Certificate[] certificates) throws java.security.cert.CertificateException
Sets the certificates.- Parameters:
certificates
- The certificates.- Returns:
- boolean true for value has changed, false for same value as current value.
- Throws:
java.security.cert.CertificateEncodingException
- If an encoding error occurs.java.security.cert.CertificateException
getCertificates
public java.security.cert.X509Certificate[] getCertificates() throws java.security.cert.CertificateException
Gets the certificates.- Returns:
- The X.509 certificates array.
- Throws:
java.security.cert.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.