Class 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
    • 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 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​(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.