WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

examples.security.sslclient
Class NulledTrustManager

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

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

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.


Fields inherited from interface weblogic.security.SSL.TrustManager
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(weblogic.security.X509[] 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(weblogic.security.X509[] o,
                                   int validateErr)
Specified by:
certificateCallback in interface weblogic.security.SSL.TrustManager

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

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