public final class JCRMIPermission
extends java.security.Permission
Constructor and Description |
---|
JCRMIPermission(java.lang.String name)
Creates a new JCRMIPermission object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Checks two JCRMIPermission objects for equality.
|
java.lang.String |
getActions()
Returns the canonical string representation of the actions,
which is the empty string "", since there are no actions for
a JCRMIPermission.
|
int |
hashCode() |
boolean |
implies(java.security.Permission p)
Checks if the specified permission is "implied" by
this object.
|
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing JCRMIPermission
objects.
|
public JCRMIPermission(java.lang.String name)
name
- should be nullpublic boolean implies(java.security.Permission p)
More specifically, this method returns true if:
implies
in class java.security.Permission
p
- the permission to check against.public boolean equals(java.lang.Object obj)
equals
in class java.security.Permission
obj
- the object we are testing for equality with this object.public int hashCode()
hashCode
in class java.security.Permission
public java.lang.String getActions()
getActions
in class java.security.Permission
public java.security.PermissionCollection newPermissionCollection()
newPermissionCollection
in class java.security.Permission
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.