Verify peer hostname against peer certificate of the SSL session.
This method verifies a DNS hostname against the CommonName attribute of the
peer certificate's SubjectDN or the DNSNames of the peer certificate's
SubjectAlternativeNames extension. An IP address is also checked against IP
address entries in that extension before applying the legacy hostname checks.
For DNS hostnames, SubjectAlternativeName entries of type DNSName are
checked before the SubjectDN CommonName. Whether a CommonName may be checked
after DNS SubjectAlternativeNames is controlled by the WebLogic hostname
verification configuration.
To verify successfully the url hostname must be case-insensitively equal to the
certificate attribute being compared.
Alternatively, this method will return true if one of the following
is true:
- the SSL session's peer certificate is a WebLogic Demo certificate
- the SSL session's peer certificate's SubjectDN CommonName attribute is equal to
the local machine's hostname AND the local machine's hostname or ip address
matches the urlhostname parameter.
- the urlhostname parameter can be verified to be a loopback address or the local hostname.
- the SSL session's peer certificate is an Oracle Key Store Service (KSS)
Demo certificate for the current Weblogic Server domain and Weblogic Server is
enabled to use KSS Demo certificates.