JCRMIPermissionspublic class JCRMIPermissions extends ACLPermissions This class represents a set of JCRMI permissions. |
Constructors Summary |
---|
public JCRMIPermissions(ACSlot parent)Constructs new object.
super(parent);
|
Methods Summary |
---|
public void | checkPermission(java.lang.String className, java.lang.String method)Verifies that the MIDlet have permission for this remote method.
if (type == ALLOW) {
return;
}
if (type == DISALLOW) {
throw new SecurityException("Access denied");
}
for (int i = 0; i < permissions.size(); i++) {
JCRMIPermission p = (JCRMIPermission) permissions.elementAt(i);
if (p.checkAccess(className, method)) {
return;
}
}
throw new SecurityException("Access denied: " + className +
" " + method);
| public java.lang.String | preparePIN(int pinID, int unblockID, int action, java.lang.String className)Initializes internal variables, verifies that operation is
supported and permitted, returns method name and signature for
given PIN operation.
checkPINOperation(pinID, unblockID, action);
String result = (String) getPINCommand(pinID, action);
if (result == null) {
throw new SecurityException();
}
checkPermission(className, result);
return result;
|
|