securityContext.setSSLEnabled(true);
securityContext.setSSLProperties(confidentialityPolicy.toProperties());
} else if(AuthenticationConfigurationPolicy.class.isInstance(p) && isAuthenticationRequired) {
// Handle authentication and user configuration
AuthenticationConfigurationPolicy authenticationConfiguration = (AuthenticationConfigurationPolicy)p;
securityContext.setAuthenticationEnabled(true);
securityContext.getUsers().clear();
securityContext.getUsers().addAll(authenticationConfiguration.getUsers());
}
}
}
}