WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.security.sslclient
Class NulledHostnameVerifier

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

public class NulledHostnameVerifier
extends java.lang.Object
implements weblogic.security.SSL.HostnameVerifierJSSE

HostnameVerifierJSSE provides a callback mechanism so that implementers of this interface can supply a policy for handling the case where the host that's being connected to and the server name from the certificate SubjectDN must match.

This is a null version of that class to show the WebLogic SSL client classes without major problems. For example, in this case, the client code connects to a server at 'localhost' but the democertificate's SubjectDN CommonName is 'bea.com' and the default WebLogic HostnameVerifierJSSE does a String.equals() on those two hostnames.

Author:
Copyright (c) 1999-2002 by BEA Systems, Inc. All Rights Reserved.
See Also:
HostnameVerifier#verify

Constructor Summary
NulledHostnameVerifier()
           
 
Method Summary
 boolean verify(java.lang.String urlHostname, java.lang.String certHostname)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NulledHostnameVerifier

public NulledHostnameVerifier()
Method Detail

verify

public boolean verify(java.lang.String urlHostname,
                      java.lang.String certHostname)
Specified by:
verify in interface weblogic.security.SSL.HostnameVerifierJSSE

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

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