|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission info.dmtree.security.DmtPrincipalPermission
Indicates the callers authority to create DMT sessions on behalf of a remote management server. Only protocol adapters communicating with management servers should be granted this permission.
DmtPrincipalPermission
has a target string which controls the
name of the principal on whose behalf the protocol adapter can act. A
wildcard is allowed at the end of the target string, to allow using any
principal name with the given prefix. The "*" target means the
adapter can create a session in the name of any principal.
Constructor Summary | |
DmtPrincipalPermission(java.lang.String target)
Creates a new DmtPrincipalPermission object with its name
set to the target string. |
|
DmtPrincipalPermission(java.lang.String target,
java.lang.String actions)
Creates a new DmtPrincipalPermission object using the
'canonical' two argument constructor. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks whether the given object is equal to this DmtPrincipalPermission instance. |
java.lang.String |
getActions()
Returns the action list (always * in the current version). |
int |
hashCode()
Returns the hash code for this permission object. |
boolean |
implies(java.security.Permission p)
Checks if this DmtPrincipalPermission object implies the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing DmtPrincipalPermission objects. |
Methods inherited from class java.security.Permission |
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DmtPrincipalPermission(java.lang.String target)
DmtPrincipalPermission
object with its name
set to the target string. Name must be non-null and non-empty.
target
- the name of the principal, can end with *
to
match any principal with the given prefix
java.lang.NullPointerException
- if name
is null
java.lang.IllegalArgumentException
- if name
is emptypublic DmtPrincipalPermission(java.lang.String target, java.lang.String actions)
DmtPrincipalPermission
object using the
'canonical' two argument constructor. In this version this class does not
define any actions, the second argument of this constructor must be "*"
so that this class can later be extended in a backward compatible way.
target
- the name of the principal, can end with *
to
match any principal with the given prefixactions
- no actions defined, must be "*" for forward compatibility
java.lang.NullPointerException
- if name
or
actions
is null
java.lang.IllegalArgumentException
- if name
is empty or
actions
is not "*"Method Detail |
public boolean equals(java.lang.Object obj)
obj
- the object to compare to this DmtPrincipalPermission instance
true
if the parameter represents the same
permissions as this instancepublic java.lang.String getActions()
*
in the current version).
public int hashCode()
equals(java.lang.Object)
method, then calling this method on each of the two
DmtPrincipalPermission objects must produce the same integer result.
public boolean implies(java.security.Permission p)
p
- the permission to check for implication
public java.security.PermissionCollection newPermissionCollection()
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |