protected String getEncryptionProtocolsCommaSeparated() { final String propertyName = type.getPrefix() + "protocols"; final String defaultValue = ""; if ( type.getFallback() == null ) { return JiveGlobals.getProperty( propertyName, defaultValue ).trim(); } else { return JiveGlobals.getProperty( propertyName, getConnectionListener( type.getFallback() ).getEncryptionProtocolsCommaSeparated() ).trim(); } }
protected String getEncryptionCipherSuitesCommaSeparated() { final String propertyName = type.getPrefix() + "ciphersuites"; final String defaultValue = ""; if ( type.getFallback() == null ) { return JiveGlobals.getProperty( propertyName, defaultValue ); } else { return JiveGlobals.getProperty( propertyName, getConnectionListener( type.getFallback() ).getEncryptionCipherSuitesCommaSeparated() ); } }
/** * A boolean that indicates if self-signed peer certificates can be used to establish an encrypted connection. * * @return true when self-signed certificates are accepted, otherwise false. */ public boolean acceptSelfSignedCertificates() { // TODO these are new properties! Deprecate (migrate?) all existing 'accept-selfsigned properties' (Eg: org.jivesoftware.openfire.session.ConnectionSettings.Server.TLS_ACCEPT_SELFSIGNED_CERTS ) final String propertyName = type.getPrefix() + "certificate.accept-selfsigned"; final boolean defaultValue = false; if ( type.getFallback() == null ) { return JiveGlobals.getBooleanProperty( propertyName, defaultValue ); } else { return JiveGlobals.getBooleanProperty( propertyName, getConnectionListener( type.getFallback() ).acceptSelfSignedCertificates() ); } }
/** * A boolean that indicates if the current validity of certificates (based on their 'notBefore' and 'notAfter' * property values) is used when they are used to establish an encrypted connection.. * * @return true when certificates are required to be valid to establish a secured connection, otherwise false. */ public boolean verifyCertificateValidity() { // TODO these are new properties! Deprecate (migrate?) all existing 'verify / verify-validity properties' (Eg: org.jivesoftware.openfire.session.ConnectionSettings.Server.TLS_CERTIFICATE_VERIFY_VALIDITY ) final String propertyName = type.getPrefix() + "certificate.verify.validity"; final boolean defaultValue = true; if ( type.getFallback() == null ) { return JiveGlobals.getBooleanProperty( propertyName, defaultValue ); } else { return JiveGlobals.getBooleanProperty( propertyName, getConnectionListener( type.getFallback() ).acceptSelfSignedCertificates() ); } }
protected String getEncryptionProtocolsCommaSeparated() { final String propertyName = type.getPrefix() + "protocols"; final String defaultValue = ""; if ( type.getFallback() == null ) { return JiveGlobals.getProperty( propertyName, defaultValue ).trim(); } else { return JiveGlobals.getProperty( propertyName, getConnectionListener( type.getFallback() ).getEncryptionProtocolsCommaSeparated() ).trim(); } }
protected String getEncryptionCipherSuitesCommaSeparated() { final String propertyName = type.getPrefix() + "ciphersuites"; final String defaultValue = ""; if ( type.getFallback() == null ) { return JiveGlobals.getProperty( propertyName, defaultValue ); } else { return JiveGlobals.getProperty( propertyName, getConnectionListener( type.getFallback() ).getEncryptionCipherSuitesCommaSeparated() ); } }
/** * A boolean that indicates if self-signed peer certificates can be used to establish an encrypted connection. * * @return true when self-signed certificates are accepted, otherwise false. */ public boolean acceptSelfSignedCertificates() { // TODO these are new properties! Deprecate (migrate?) all existing 'accept-selfsigned properties' (Eg: org.jivesoftware.openfire.session.ConnectionSettings.Server.TLS_ACCEPT_SELFSIGNED_CERTS ) final String propertyName = type.getPrefix() + "certificate.accept-selfsigned"; final boolean defaultValue = false; if ( type.getFallback() == null ) { return JiveGlobals.getBooleanProperty( propertyName, defaultValue ); } else { return JiveGlobals.getBooleanProperty( propertyName, getConnectionListener( type.getFallback() ).acceptSelfSignedCertificates() ); } }
/** * A boolean that indicates if the current validity of certificates (based on their 'notBefore' and 'notAfter' * property values) is used when they are used to establish an encrypted connection.. * * @return true when certificates are required to be valid to establish a secured connection, otherwise false. */ public boolean verifyCertificateValidity() { // TODO these are new properties! Deprecate (migrate?) all existing 'verify / verify-validity properties' (Eg: org.jivesoftware.openfire.session.ConnectionSettings.Server.TLS_CERTIFICATE_VERIFY_VALIDITY ) final String propertyName = type.getPrefix() + "certificate.verify.validity"; final boolean defaultValue = true; if ( type.getFallback() == null ) { return JiveGlobals.getBooleanProperty( propertyName, defaultValue ); } else { return JiveGlobals.getBooleanProperty( propertyName, getConnectionListener( type.getFallback() ).acceptSelfSignedCertificates() ); } }