Android
java.security
public class

java.security.GuardedObject

java.lang.Object
java.security.GuardedObject Serializable

GuardedObject controls access to an object, by checking all requests for the object with a Guard.

Summary

Public Constructors

            GuardedObject(Object object, Guard guard)
Constructs a GuardedObject to protect access to the specified Object using the specified Guard.

Public Methods

          Object  getObject()
Checks whether access should be granted to the object.
Methods inherited from class java.lang.Object

Details

Public Constructors

public GuardedObject(Object object, Guard guard)

Constructs a GuardedObject to protect access to the specified Object using the specified Guard.

Parameters

object the Object to guard
guard the Guard

Public Methods

public Object getObject()

Checks whether access should be granted to the object. If access is granted, this method returns the object. If it is not granted, then a SecurityException is thrown.

Returns

  • the guarded object

Throws

SecurityException If access is not granted to the object
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48