BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.security.SSL
Class HostnameVerification

java.lang.Object
  |
  +--weblogic.security.SSL.HostnameVerification

public class HostnameVerification
extends java.lang.Object

The public face of the HostnameVerifier interface.

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

Constructor Summary
HostnameVerification()
           
 
Method Summary
static void setup()
          This is a server-internal method.
static boolean verify(java.net.InetAddress addr, X509 cert)
          Verify that the hostname from the URL is an acceptable match with the value from the common name entry in the server certificate's distinguished name.
static boolean verify(java.lang.String urlHostname, java.lang.String certHostname)
          Verify that the hostname from the URL is an acceptable match with the value from the common name entry in the server certificate's distinguished name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostnameVerification

public HostnameVerification()
Method Detail

setup

public static void setup()
This is a server-internal method. Calling it from other code will have no effect.

verify

public static boolean verify(java.lang.String urlHostname,
                             java.lang.String certHostname)
Verify that the hostname from the URL is an acceptable match with the value from the common name entry in the server certificate's distinguished name.

Parameters:
urlHostname - The hostname of the server machine the url points to.
certHostname - The common name entry from the server certificate.
Returns:
true if the certificate hostname is acceptable

verify

public static boolean verify(java.net.InetAddress addr,
                             X509 cert)
Verify that the hostname from the URL is an acceptable match with the value from the common name entry in the server certificate's distinguished name.

Parameters:
addr - The InetAddress of the server machine the url points to.
cert - The server certificate from the underlying SSL connection.
Returns:
true if the certificate hostname is acceptable

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.