WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.security.sslclient
Class NulledTrustManager

java.lang.Object
  |
  +--examples.security.sslclient.NulledTrustManager
All Implemented Interfaces:
weblogic.security.SSL.TrustManagerJSSE

public class NulledTrustManager
extends java.lang.Object
implements weblogic.security.SSL.TrustManagerJSSE

Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return true if it can be validated and is trusted for client SSL authentication. This is a null implemention which always returns true after printing the certificate chain to System.out This is an example only and should NOT be used in a production environment.

Author:
Copyright (c) 1999-2002 by BEA Systems, Inc. All Rights Reserved.

Fields inherited from interface weblogic.security.SSL.TrustManagerJSSE
ERR_CERT_CHAIN_INCOMPLETE, ERR_CERT_CHAIN_INVALID, ERR_CERT_CHAIN_UNTRUSTED, ERR_CERT_EXPIRED, ERR_NONE, ERR_SIGNATURE_INVALID
 
Constructor Summary
NulledTrustManager()
           
 
Method Summary
 boolean certificateCallback(javax.security.cert.X509Certificate[] o, int validateErr)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NulledTrustManager

public NulledTrustManager()
Method Detail

certificateCallback

public boolean certificateCallback(javax.security.cert.X509Certificate[] o,
                                   int validateErr)
Specified by:
certificateCallback in interface weblogic.security.SSL.TrustManagerJSSE

Documentation is available at
http://e-docs.bea.com/wls/docs70

Copyright © 2002 BEA Systems, Inc. All Rights Reserved.