public final class DefaultHostnameVerifier extends Object implements HostnameVerifier
here
.
getNonStrictInstance ()
- writes warning to System.err
but returns true even if verification fails getStrictInstance ()
- returns false if verification failsnonStrictInstance
if nothing was specified.
This can be changed for each factory by using
factory.setHostnameVerifier( DefaultHostnameVerifier.getStictInstance() )
Copyright (c) 2003 SAP AG.
Modifier and Type | Method and Description |
---|---|
static DefaultHostnameVerifier |
getNonStrictInstance() |
static DefaultHostnameVerifier |
getStrictInstance() |
boolean |
verify(String urlHostname,
String certHostname)
Compares the hostname with the name from server certifiate.
|
public boolean verify(String urlHostname, String certHostname)
"*"
in certHostname
as wildcard.
verify
in interface HostnameVerifier
urlHostname
- the hostnamecertHostname
- the name from server certifiatepublic static DefaultHostnameVerifier getStrictInstance()
public static DefaultHostnameVerifier getNonStrictInstance()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] CORE-TOOLS
|
[sap.com]
|
default
|
BC-JAS
|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/security/lib
|
api
|
BC-JAS-SEC
|
[sap.com] ENGINEAPI
|
[sap.com]
|
-
|
BC-JAS-SEC
|
[sap.com] ENGINEAPI
|
[sap.com]
|
default
|
BC-JAS-SEC
|
[sap.com] SAP_BUILDT
|
[sap.com] tc/bi/wstech
|
def
|
BC-CTS-CBS-PLG
|
Copyright 2018 SAP AG Complete Copyright Notice