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
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 |
HostnameVerification
public HostnameVerification()
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
WebLogic classes and methods that do not appear in this reference are not public and are not supported.