public class SAMLContextProviderLB extends SAMLContextProviderImpl
keyManager, log, metadata, metadataResolver, pkixResolver, pkixTrustEvaluator, storageFactory
Constructor and Description |
---|
SAMLContextProviderLB() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Verifies that required entities were autowired or set and initializes resolvers used to construct trust engines.
|
protected void |
populateGenericContext(HttpServletRequest request,
HttpServletResponse response,
SAMLMessageContext context)
Method wraps the original request and provides values specified for load-balancer.
|
void |
setContextPath(String contextPath)
Context path of the LB, must be starting with slash, e.g.
|
void |
setIncludeServerPortInRequestURL(boolean includeServerPortInRequestURL)
When true serverPort will be used in construction of LB requestURL.
|
void |
setScheme(String scheme)
Scheme of the LB server - either http or https
|
void |
setServerName(String serverName)
Server name of the LB, e.g.
|
void |
setServerPort(int serverPort)
Port of the server, in case value is <= 0 port will not be included in the requestURL and port
from the original request will be used for getServerPort calls.
|
getDefaultLocalEntityId, getDefaultLocalEntityRole, getLocalAndPeerEntity, getLocalEntity, populateDecrypter, populateLocalContext, populateLocalEntity, populateLocalEntityId, populatePeerContext, populatePeerEntityId, populatePeerSSLCredential, populateSSLCredential, populateSSLHostnameVerifier, populateSSLTrustEngine, populateTrustEngine, setKeyManager, setMetadata, setMetadataResolver, setPkixResolver, setPkixTrustEvaluator, setStorageFactory
protected void populateGenericContext(HttpServletRequest request, HttpServletResponse response, SAMLMessageContext context) throws org.opensaml.saml2.metadata.provider.MetadataProviderException
populateGenericContext
in class SAMLContextProviderImpl
request
- original requestresponse
- response objectcontext
- context to populate values toorg.opensaml.saml2.metadata.provider.MetadataProviderException
public void setScheme(String scheme)
scheme
- schemepublic void setServerName(String serverName)
serverName
- server namepublic void setServerPort(int serverPort)
serverPort
- server portpublic void setIncludeServerPortInRequestURL(boolean includeServerPortInRequestURL)
includeServerPortInRequestURL
- true to include portpublic void setContextPath(String contextPath)
contextPath
- context pathpublic void afterPropertiesSet() throws ServletException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class SAMLContextProviderImpl
ServletException