Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsISecurityContext Class Reference

#include <nsISecurityContext.h>

Inheritance diagram for nsISecurityContext:
Inheritance graph
[legend]
Collaboration diagram for nsISecurityContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD Implies (const char *target, const char *action, PRBool *bAllowedAccess)=0
 Get the security context to be used in LiveConnect.
NS_IMETHOD GetOrigin (char *buf, int len)=0
 Get the origin associated with the context.
NS_IMETHOD GetCertificateID (char *buf, int len)=0
 Get the certificate associated with the context.

Detailed Description

Definition at line 61 of file nsISecurityContext.h.


Member Function Documentation

NS_IMETHOD nsISecurityContext::GetCertificateID ( char *  buf,
int  len 
) [pure virtual]

Get the certificate associated with the context.

Parameters:
buf-- Result buffer (managed by the caller.)
len-- Buffer length.
Returns:
-- NS_OK if the codebase string was obtained. -- NS_FALSE otherwise.

Implemented in nsCSecurityContext, nsCNullSecurityContext, MRJSecurityContext, and MRJSecurityContext.

NS_IMETHOD nsISecurityContext::GetOrigin ( char *  buf,
int  len 
) [pure virtual]

Get the origin associated with the context.

Parameters:
buf-- Result buffer (managed by the caller.)
len-- Buffer length.
Returns:
-- NS_OK if the codebase string was obtained. -- NS_FALSE otherwise.

Implemented in nsCSecurityContext, nsCNullSecurityContext, MRJSecurityContext, and MRJSecurityContext.

NS_IMETHOD nsISecurityContext::Implies ( const char *  target,
const char *  action,
PRBool bAllowedAccess 
) [pure virtual]

Get the security context to be used in LiveConnect.

This is used for JavaScript <--> Java.

Parameters:
target-- Possible target.
action-- Possible action on the target.
Returns:
-- NS_OK if the target and action is permitted on the security context. -- NS_FALSE otherwise.

Implemented in nsCSecurityContext, nsCNullSecurityContext, MRJSecurityContext, and MRJSecurityContext.


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