@Test(expected = MetadataProviderException.class) public void testPopulateLocalEntityAliasInvalidRole() throws Exception { expect(request.getContextPath()).andReturn("/SSO/alias/myAlias/idp"); replayMock(); contextProvider.getLocalEntity(request, response); }
public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException { SAMLMessageContext context = new SAMLMessageContext(); populateEntityId(context, request.getContextPath()); populateContext(request, response, context); return context; }
SAMLContextProviderImpl implements SAMLContextProvider, InitializingBean { public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException { SAMLMessageContext context = new SAMLMessageContext(); populateEntityId(context, request.getContextPath()); populateContext(request, response, context); return context; } }
SAMLContextProviderImpl implements SAMLContextProvider, InitializingBean { public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException { SAMLMessageContext context = new SAMLMessageContext(); populateEntityId(context, request.getContextPath()); populateContext(request, response, context); return context; }  }
SAMLContextProviderImpl implements SAMLContextProvider, InitializingBean { public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException { SAMLMessageContext context = new SAMLMessageContext(); populateEntityId(context, request.getContextPath()); populateContext(request, response, context); return context; }  SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response); SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response, SAMLCredential credential); @Autowired void setMetadata(MetadataManager metadata); @Autowired void setKeyManager(KeyManager keyManager); void afterPropertiesSet(); }
SAMLContextProviderImpl implements SAMLContextProvider, InitializingBean { public SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response) throws MetadataProviderException { SAMLMessageContext context = new SAMLMessageContext(); populateEntityId(context, request.getContextPath()); populateContext(request, response, context); return context; }  SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response); SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response, SAMLCredential credential); @Autowired void setMetadata(MetadataManager metadata); @Autowired void setKeyManager(KeyManager keyManager); void afterPropertiesSet();  }