|
Spring Security SAML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.saml.context.SAMLContextProviderImpl
org.springframework.security.saml.context.SAMLContextProviderLB
public class SAMLContextProviderLB
Context provider which overrides request attributes with values of the load-balancer or reverse-proxy in front of the local application. The settings help to provide correct redirect URls and verify destination URLs during SAML processing.
Field Summary |
---|
Fields inherited from class org.springframework.security.saml.context.SAMLContextProviderImpl |
---|
keyManager, logger, metadata, metadataResolver, pkixResolver, storageFactory |
Constructor Summary | |
---|---|
SAMLContextProviderLB()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.security.saml.context.SAMLContextProviderImpl |
---|
getLocalAndPeerEntity, getLocalEntity, populateDecrypter, populateLocalContext, populateLocalEntity, populateLocalEntityId, populatePeerContext, populatePeerEntityId, populatePeerSSLCredential, populateSSLCredential, populateSSLTrustEngine, populateTrustEngine, setKeyManager, setMetadata, setStorageFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMLContextProviderLB()
Method Detail |
---|
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 to
org.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
|
Spring Security SAML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |