sbISecurityMixin Interface Reference

An interface for setting up nsISecurityCheckedComponent security checks. More...

import"sbISecurityMixin.idl";

Inheritance diagram for sbISecurityMixin:
[legend]
Collaboration diagram for sbISecurityMixin:
[legend]

Public Member Functions

void init (in sbISecurityAggregator aOuter, [const, array, size_is(aInterfacesLength)] in nsIIDPtr aInterfacesArray, in unsigned long aInterfacesLength, [const, array, size_is(aMethodsLength)] in string aMethodsArray, in unsigned long aMethodsLength, [const, array, size_is(aRPropsLength)] in string aRPropsArray, in unsigned long aRPropsLength, [const, array, size_is(aWPropsLength)] in string aWPropsArray, in unsigned long aWPropsLength, in boolean aPrivileged)
 
nsIURI getCodebase ()
 Gets the URI for the current location. More...
 
boolean getPermissionForScopedNameWrapper (in AString aRemotePermCategory)
 Get the permissions for a category. More...
 

Public Attributes

attribute nsIDOMDocument notificationDocument
 the DOM document to send notification events to More...
 

Detailed Description

An interface for setting up nsISecurityCheckedComponent security checks.

Implemented by objects that provide the nsISecurityCheckedComponent functionality to allow other classes to aggregate (or compose) that functionality in without implementing it directly.

See Also
nsISecurityCheckedComponent

Definition at line 53 of file sbISecurityMixin.idl.

Member Function Documentation

nsIURI sbISecurityMixin::getCodebase ( )

Gets the URI for the current location.

Can return NS_OK and a null URI. Needs to do so to allow security checks to succeed when called from native code.

Parameters
aSiteURI- The URI of the subject principal, basically the calling page. It is pulled from the JS stack. This will be null if the security check originated from native code and not an access on a web page.
Returns
NS_OK - indicates no implicit failure of code, does not ensure URI is set.
boolean sbISecurityMixin::getPermissionForScopedNameWrapper ( in AString  aRemotePermCategory)

Get the permissions for a category.

Parameters
aRemotePermCategory- String representation of the category to check. "Control Playback" "Read Current" "Read Library" "Add Media" "Create Medialists"
_retval- True if site has permissions in category, False if site does not have permissions in category.
Returns
NS_OK
void sbISecurityMixin::init ( in sbISecurityAggregator  aOuter,
[const, array, size_is(aInterfacesLength)] in nsIIDPtr  aInterfacesArray,
in unsigned long  aInterfacesLength,
[const, array, size_is(aMethodsLength)] in string  aMethodsArray,
in unsigned long  aMethodsLength,
[const, array, size_is(aRPropsLength)] in string  aRPropsArray,
in unsigned long  aRPropsLength,
[const, array, size_is(aWPropsLength)] in string  aWPropsArray,
in unsigned long  aWPropsLength,
in boolean  aPrivileged 
)

Member Data Documentation

attribute nsIDOMDocument sbISecurityMixin::notificationDocument

the DOM document to send notification events to

Definition at line 83 of file sbISecurityMixin.idl.


The documentation for this interface was generated from the following file: