|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LockedDomainService
Interface for locked domain, a security mechanism that ensures that a gadget is always registered on a fixed, unique domain. This prevents attacks from other gadgets that are rendered on the same domain, since all modern web browsers implement a same origin policy that prevents pages served from different hosts from accessing each other's data.
| Method Summary | |
|---|---|
boolean |
gadgetCanRender(String host,
Gadget gadget,
String container)
Check whether a gadget should be allowed to render on a particular host. |
String |
getLockedDomainForGadget(Gadget gadget,
String container)
Calculate the locked domain for a particular gadget on a particular container. |
boolean |
isSafeForOpenProxy(String host)
|
| Method Detail |
|---|
boolean isSafeForOpenProxy(String host)
boolean gadgetCanRender(String host,
Gadget gadget,
String container)
host - host name for the contentgadget - URL of the gadgetcontainer - container
String getLockedDomainForGadget(Gadget gadget,
String container)
gadget - URL of the gadgetcontainer - name of the container page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||