|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission com.sun.identity.security.ISSecurityPermission
This class ISSecurityPermission
is used to
protect the Access Manager resources which should be accessed only by trusted
application. The resources this Permission is used to protect are:
Access Manager administrator DN and password, and access to the encryption and
decryption methods used to encrypt all passwords in Access Manager services.
The supported permissions is "access"
and supported
actions are "adminpassword" and "crypt"
. So in the
Java security policy file which will define the security options to
grant this permission to code bases, it should be done as below:
grant codeBase "file:{directory where jars are located}/-" {
com.sun.identity.security.ISSecurityPermission "access",
"adminpassword,crypt";
};
Note: The property
com.sun.identity.security.checkcaller
should be set to true in AMConfig properties file to enable the
Java security permissions check.
Constructor Summary | |
ISSecurityPermission(java.lang.String access)
Constructs ISSecurityPermission object. |
|
ISSecurityPermission(java.lang.String access,
java.lang.String action)
Constructs ISSecurityPermission object. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns true if this object is equals to o . |
java.lang.String |
getActions()
|
int |
hashCode()
Returns hash code for this object. |
boolean |
implies(java.security.Permission p)
This method checks to see if this instance of ISSecurityPermission implies the Permission being
passed as the argument. |
Methods inherited from class java.security.Permission |
checkGuard, getName, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ISSecurityPermission(java.lang.String access, java.lang.String action)
ISSecurityPermission
object.
access
- Has to be string "access"action
- Can be adminpassword
or crypt
.public ISSecurityPermission(java.lang.String access)
ISSecurityPermission
object.
This constructor sets the action to "adminpassword"
by default.
access
- Has to be string "access"Method Detail |
public boolean implies(java.security.Permission p)
ISSecurityPermission
implies the Permission being
passed as the argument. For more information on this,
see the Javadocs of java.security.Permission
p
- Instance of
com.sun.identity.security.ISSecurityPermission
ISSecurityPermission
implies the actions of the argument p. False otherwise
java.security.Permission
public int hashCode()
Permission.hashCode()
public boolean equals(java.lang.Object o)
o
.
o
- object fro comparison.
public java.lang.String getActions()
ISSecurityPermission
Permission.getActions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |