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

Quick Search    Search Deep

org.activemq.security.jassjacc
Class AbstractJMSPermission  view AbstractJMSPermission download AbstractJMSPermission.java

java.lang.Object
  extended byjava.security.Permission
      extended byorg.activemq.security.jassjacc.AbstractJMSPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable
Direct Known Subclasses:
JMSBrokerPermission, JMSDestinationPermission

public abstract class AbstractJMSPermission
extends java.security.Permission
implements java.io.Serializable

Abstract class to make it easier to JMS Permissions.

Version:
$Revision: 1.1.1.1 $

Field Summary
private  java.lang.String action
           
private  java.util.HashSet actions
           
private  int cachedHashCode
           
 
Fields inherited from class java.security.Permission
 
Constructor Summary
AbstractJMSPermission(java.lang.String name, java.lang.String action)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Check to see if this object equals obj.
 java.lang.String getActions()
          This method returns the list of actions for this Permission as a String.
abstract  java.util.Set getValidSetOfActions()
           
 int hashCode()
          This method returns a hash code for this Permission.
 boolean implies(java.security.Permission permission)
          This method tests whether this Permission implies that the specified Permission is also granted.
private static java.lang.String join(java.lang.String[] action)
           
private static java.lang.String[] normalize(java.lang.String action)
           
 
Methods inherited from class java.security.Permission
checkGuard, getName, newPermissionCollection, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

action

private java.lang.String action

cachedHashCode

private int cachedHashCode

actions

private java.util.HashSet actions
Constructor Detail

AbstractJMSPermission

public AbstractJMSPermission(java.lang.String name,
                             java.lang.String action)
Method Detail

getValidSetOfActions

public abstract java.util.Set getValidSetOfActions()

normalize

private static java.lang.String[] normalize(java.lang.String action)

join

private static java.lang.String join(java.lang.String[] action)

hashCode

public int hashCode()
Description copied from class: java.security.Permission
This method returns a hash code for this Permission. It must satisfy the contract of Object.hashCode: it must be the same for all objects that equals considers to be the same.


equals

public boolean equals(java.lang.Object o)
Description copied from class: java.security.Permission
Check to see if this object equals obj. Use implies, rather than equals, when making access control decisions.


getActions

public java.lang.String getActions()
Description copied from class: java.security.Permission
This method returns the list of actions for this Permission as a String. The string should be in canonical order, for example, both new FilePermission(f, "write,read") and new FilePermission(f, "read,write") have the action list "read,write".


implies

public boolean implies(java.security.Permission permission)
Description copied from class: java.security.Permission
This method tests whether this Permission implies that the specified Permission is also granted.