Logo Search packages:      
Sourcecode: xulrunner version File versions

nsIPrincipal Interface Reference

import "nsIPrincipal.idl";

Inheritance diagram for nsIPrincipal:


List of all members.

Detailed Description

WARNING!! The JEP needs to call GetOrigin() to support JavaScript-to-Java LiveConnect. So every change to the nsIPrincipal interface (big enough to change its IID) also breaks JavaScript-to-Java LiveConnect on mac.

If you REALLY have to change this interface, please mark your bug as blocking bug 293973.

Definition at line 64 of file nsIPrincipal.idl.

Public Member Functions

short canEnableCapability (in string capability)
void checkMayLoad (in nsIURI uri, in boolean report)
void disableCapability (in string capability, inout voidPtr annotation)
void enableCapability (in string capability, inout voidPtr annotation)
boolean equals (in nsIPrincipal other)
JSPrincipals getJSPrincipals (in JSContext cx)
void getPreferences (out string prefBranch, out string id, out string subjectName, out string grantedList, out string deniedList, out boolean isTrusted)
boolean isCapabilityEnabled (in string capability, in voidPtr annotation)
void read (in nsIObjectInputStream aInputStream)
void revertCapability (in string capability, inout voidPtr annotation)
void setCanEnableCapability (in string capability, in short canEnable)
boolean subsumes (in nsIPrincipal other)
void write (in nsIObjectOutputStream aOutputStream)
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

readonly attribute nsISupports certificate
attribute nsIURI domain
const short ENABLE_DENIED = 1
const short ENABLE_GRANTED = 4
const short ENABLE_UNKNOWN = 2
readonly attribute AUTF8String fingerprint
readonly attribute boolean hasCertificate
readonly attribute unsigned long hashValue
readonly attribute string origin
readonly attribute AUTF8String prettyName
attribute voidPtr securityPolicy
readonly attribute AUTF8String subjectName
readonly attribute nsIURI URI

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

Generated by  Doxygen 1.6.0   Back to index