Package com.sun.identity.security
Class ISSecurityPermission
java.lang.Object
java.security.Permission
com.sun.identity.security.ISSecurityPermission
- All Implemented Interfaces:
Serializable,Guard
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: OpenAM
administrator DN and password, and access to the encryption and decryption
methods used to encrypt all passwords in OpenAM 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.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionISSecurityPermission(String access) ConstructsISSecurityPermissionobject.ISSecurityPermission(String access, String action) ConstructsISSecurityPermissionobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this object is equals too.inthashCode()Returns hash code for this object.booleanThis method checks to see if this instance ofISSecurityPermissionimplies the Permission being passed as the argument.Methods inherited from class java.security.Permission
checkGuard, getName, newPermissionCollection, toString
-
Constructor Details
-
ISSecurityPermission
ConstructsISSecurityPermissionobject.- Parameters:
access- Has to be string "access"action- Can beadminpasswordorcrypt.
-
ISSecurityPermission
ConstructsISSecurityPermissionobject. This constructor sets the action to"adminpassword"by default.- Parameters:
access- Has to be string "access"
-
-
Method Details
-
implies
This method checks to see if this instance ofISSecurityPermissionimplies the Permission being passed as the argument. For more information on this, see the Javadocs ofjava.security.Permission- Specified by:
impliesin classPermission- Parameters:
p- Instance ofcom.sun.identity.security.ISSecurityPermission- Returns:
- true if this instance of
ISSecurityPermissionimplies the actions of the argument p. False otherwisejava.security.Permission
-
hashCode
public int hashCode()Returns hash code for this object.- Specified by:
hashCodein classPermission- Returns:
- hash code representing this object
- See Also:
-
equals
Returns true if this object is equals too.- Specified by:
equalsin classPermission- Parameters:
o- object fro comparison.- Returns:
- true if both object are similar.
-
getActions
- Specified by:
getActionsin classPermission- Returns:
- String representation of actions supported by
ISSecurityPermission - See Also:
-