Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

au.edu.educationau.belts.mock
Class MockBELTSContext  view MockBELTSContext download MockBELTSContext.java

java.lang.Object
  extended byau.edu.educationau.belts.mock.MockBELTSContext
All Implemented Interfaces:
au.edu.educationau.belts.container.BELTSContext

public class MockBELTSContext
extends java.lang.Object
implements au.edu.educationau.belts.container.BELTSContext

This class...

Version:
$Revision: 1.6 $ - $Date: 2003/02/28 06:43:06 $

Field Summary
 boolean _callerInRole
           
 MockPrincipal _mockPrincipal
           
 
Constructor Summary
MockBELTSContext()
          Constructor for MockBELTSContext.
 
Method Summary
 java.lang.Object get(java.lang.Object arg0)
           
 java.security.Principal getCallerPrincipal()
          Get the principal associated with the current call.
 boolean isCallerInRole(java.lang.String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_mockPrincipal

public MockPrincipal _mockPrincipal

_callerInRole

public boolean _callerInRole
Constructor Detail

MockBELTSContext

public MockBELTSContext()
Constructor for MockBELTSContext.

Method Detail

getCallerPrincipal

public java.security.Principal getCallerPrincipal()
Description copied from interface: au.edu.educationau.belts.container.BELTSContext
Get the principal associated with the current call. This may be null if the call is not being called from a secured context.

Specified by:
getCallerPrincipal in interface au.edu.educationau.belts.container.BELTSContext

get

public java.lang.Object get(java.lang.Object arg0)
                     throws ContextException

isCallerInRole

public boolean isCallerInRole(java.lang.String role)
Specified by:
isCallerInRole in interface au.edu.educationau.belts.container.BELTSContext