HP CloudSystem Matrix/Matrix Operating Environment 7.2 Integration Interfaces API and CLI Operations Reference Guide
 /** Empty array of certificate authority certificates. */
 private static final X509Certificate[] acceptedIssuers =
 new X509Certificate[] {};
 /**
 * Always trust for client SSL chain peer certificate chain with any
 * authType authentication types.
 * 
 * @param chain The peer certificate chain.
 * @param authType The authentication type based on the client
 * certificate.
 */
 public void checkClientTrusted(
 X509Certificate[] chain, String authType)
 throws CertificateException {
 }
 /**
 * Always trust for server SSL chain peer certificate chain with any
 * authType exchange algorithm types.
 * 
 * @param chain The peer certificate chain.
 * @param authType The key exchange algorithm used.
 */
 public void checkServerTrusted(
 X509Certificate[] chain, String authType)
 throws CertificateException {
 }
 /**
 * Return an empty array of certificate authority certificates which
 * are trusted for authenticating peers.
 * 
 * @return an empty array of issuer certificates.
 */
 public X509Certificate[] getAcceptedIssuers() {
 return (acceptedIssuers);
 }
}
Sample Code 91










