Example usage for org.apache.commons.ssl HostnameVerifier DEFAULT

List of usage examples for org.apache.commons.ssl HostnameVerifier DEFAULT

Introduction

In this page you can find the example usage for org.apache.commons.ssl HostnameVerifier DEFAULT.

Prototype

HostnameVerifier DEFAULT

To view the source code for org.apache.commons.ssl HostnameVerifier DEFAULT.

Click Source Link

Document

The DEFAULT HostnameVerifier works the same way as Curl and Firefox.

Usage

From source file:org.springframework.security.saml.context.SAMLContextProviderImplTest.java

@Test
public void testPopulateLocalEntityNullPath() throws Exception {
    setLocalContextParameters(request, "", null);
    replayMock();/* w  ww  . j a  v  a 2s  .co m*/
    SAMLMessageContext context = contextProvider.getLocalEntity(request, response);
    assertEquals(metadata.getHostedSPName(), context.getLocalEntityId());
    assertEquals(SPSSODescriptor.DEFAULT_ELEMENT_NAME, context.getLocalEntityRole());
    assertEquals(context.getLocalSSLHostnameVerifier(), HostnameVerifier.DEFAULT);
    verifyMock();
}