Class X509CertificatesProp

java.lang.Object
com.iizix.prop.GProp<byte[]>
com.iizix.prop.ByteArrayProp
com.iizix.prop.X509CertificatesProp
All Implemented Interfaces:
EventListener, IGProp<byte[]>, Cloneable

public class X509CertificatesProp extends ByteArrayProp
The X.509 Certificates Property used for SSL communication.
Author:
Christopher Mindus
  • Constructor Details

    • 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 Details

    • 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 class ByteArrayProp
      Parameters:
      newValue - the new value.
      Returns:
      boolean true for value has changed, false for same value as current value.
    • setCertificates

      public boolean setCertificates(X509Certificate[] certificates) throws CertificateException
      Sets the certificates.
      Parameters:
      certificates - The certificates.
      Returns:
      boolean true for value has changed, false for same value as current value.
      Throws:
      CertificateEncodingException - If an encoding error occurs.
      CertificateException
    • getCertificates

      public X509Certificate[] getCertificates() throws CertificateException
      Gets the certificates.
      Returns:
      The X.509 certificates array.
      Throws:
      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.