|
Spring Extensions | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.myjeeva.spring.security.util.CrossDomainMapperImpl
public class CrossDomainMapperImpl
Concrete implementation of CrossDomainMapper
that obtains HTTP domain:HTTPS domain pairs from the application context.
So map the all the cross domain name entry in the application context for respective ports defined in the PortMapper
Constructor Summary | |
---|---|
CrossDomainMapperImpl()
|
Method Summary | |
---|---|
Map |
getTranslatedPortMappings()
Returns the translated (cross domain name -> cross domain name) version of the respective cross domain name mapping specified via setCrossDomainMappings(Map) |
String |
lookupHttpCrossDomain(String httpsDomainName)
returns the HTTP domain Name |
String |
lookupHttpsCrossDomain(String httpDomainName)
returns the HTTPS domain name |
void |
setCrossDomainMappings(Map newCrossDomainMappings)
Set to map the cross domain respectively to port mappings defined in the PortMapper
In a Spring XML ApplicationContext, a definition would look something like this: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrossDomainMapperImpl()
Method Detail |
---|
public Map getTranslatedPortMappings()
setCrossDomainMappings(Map)
public String lookupHttpCrossDomain(String httpsDomainName)
lookupHttpCrossDomain
in interface CrossDomainMapper
httpsDomainName
- a String
object.
null
if unknownpublic String lookupHttpsCrossDomain(String httpDomainName)
lookupHttpsCrossDomain
in interface CrossDomainMapper
httpDomainName
- a String
object.
null
if unknownpublic void setCrossDomainMappings(Map newCrossDomainMappings)
PortMapper
In a Spring XML ApplicationContext, a definition would look something like this:
<property name="crossDomainMappings"> <map> <entry key="company.com"><value>sso.company.com</value></entry> <entry key="internal.company.com"><value>auth.internal.company.com</value></entry> </map> </property>
newCrossDomainMappings
- - A Map consisting of String keys and String values, where for each entry the key is the string
representation of an HTTP cross domain, and the value is the string representation of the corresponding integer HTTPS cross domain.
IllegalArgumentException
- if input map does not consist of String keys and values.
|
Spring Extensions | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |