|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.user.CredentialPermission
public class CredentialPermission
This class is used to protect the retrieval of credential information from the UserIdentity class. In order to perform the getCredential method in a UserIdentity class, the CredentialPermission "readCredential" must be granted.
grant { permission com.sas.services.user.CredentialPermission "readCredential"; };
Constructor Summary | |
---|---|
CredentialPermission()
Constructs a default credential permission. |
|
CredentialPermission(java.lang.String name)
Constructs a credential permission using the specified name. |
|
CredentialPermission(java.lang.String name,
java.lang.String actions)
Constructs a credential permission using the specified name and actions. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether or not the specified object is a permission collection. |
java.lang.String |
getActions()
Gets actions. |
int |
hashCode()
Gets ths collection's hash code. |
boolean |
implies(java.security.Permission permission)
Determines whether or not the specified permission implies a credential permission. |
java.security.PermissionCollection |
newPermissionCollection()
Creates a new permission collection. |
Constructor Detail |
---|
public CredentialPermission()
public CredentialPermission(java.lang.String name)
name
- Permission's name.public CredentialPermission(java.lang.String name, java.lang.String actions)
name
- Permission's name.actions
- Permission's actions.Method Detail |
---|
public boolean implies(java.security.Permission permission)
implies
in class java.security.BasicPermission
permission
- Permission
true
if the permission is a credential
permission.public boolean equals(java.lang.Object obj)
equals
in class java.security.BasicPermission
obj
- Object to be compared for equality.
true
if the specified object is a
credential permission.public int hashCode()
hashCode
in class java.security.BasicPermission
public java.lang.String getActions()
getActions
in class java.security.BasicPermission
public java.security.PermissionCollection newPermissionCollection()
newPermissionCollection
in class java.security.BasicPermission
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |