? EndpointPermission
java.lang.Object
java.security.Permission
org.osgi.service.remoteserviceadmin.EndpointPermission
- ????????:
Serializable
,Guard
A bundle's authority to export, import or read an Endpoint.
- The
export
action allows a bundle to export a service as an Endpoint. - The
import
action allows a bundle to import a service from an Endpoint. - The
read
action allows a bundle to read references to an Endpoint.
EndpointPermission
to read the specific service.- ????:
-
????
?? -
?????
????????EndpointPermission
(String filterString, String actions) Create a new EndpointPermission with the specified filter.EndpointPermission
(EndpointDescription endpoint, String localFrameworkUUID, String actions) Creates a new requestedEndpointPermission
object to be used by code that must performcheckPermission
. -
????
??????????boolean
Determines the equality of two EndpointPermission objects.Returns the canonical string representation of the actions.int
hashCode()
Returns the hash code value for this object.boolean
Determines if aEndpointPermission
object "implies" the specified permission.Returns a newPermissionCollection
object for storingEndpointPermission
objects.??????? java.security.Permission
checkGuard, getName, toString
-
??????
-
???????
-
EndpointPermission
Create a new EndpointPermission with the specified filter.The filter will be evaluated against the endpoint properties of a requested EndpointPermission.
There are three possible actions:
read
,import
andexport
. Theread
action allows the owner of this permission to see the presence of distributed services. Theimport
action allows the owner of this permission to import an endpoint. Theexport
action allows the owner of this permission to export a service.- ??:
filterString
- The filter string or "*" to match all endpoints.actions
- The actionsread
,import
, orexport
.- ??:
IllegalArgumentException
- If the filter has an invalid syntax or the actions are not valid.
-
EndpointPermission
Creates a new requestedEndpointPermission
object to be used by code that must performcheckPermission
.EndpointPermission
objects created with this constructor cannot be added to anEndpointPermission
permission collection.- ??:
endpoint
- The requested endpoint.localFrameworkUUID
- The UUID of the local framework. This is used to support matching theendpoint.framework.uuid
endpoint property to the<<LOCAL>>
value in the filter expression.actions
- The actionsread
,import
, orexport
.- ??:
IllegalArgumentException
- If the endpoint isnull
or the actions are not valid.
-
-
??????
-
implies
Determines if aEndpointPermission
object "implies" the specified permission.- ???:
implies
???Permission
- ??:
p
- The target permission to check.- ??:
true
if the specified permission is implied by this object;false
otherwise.
-
getActions
Returns the canonical string representation of the actions. Always returns present actions in the following canonical order:read
,import
,export
.- ???:
getActions
???Permission
- ??:
- The canonical string representation of the actions.
-
newPermissionCollection
Returns a newPermissionCollection
object for storingEndpointPermission
objects.- ??:
newPermissionCollection
???Permission
- ??:
- A new
PermissionCollection
object suitable for storingEndpointPermission
objects.
-
equals
Determines the equality of two EndpointPermission objects. Checks that specified object has the same name, actions and endpoint as thisEndpointPermission
.- ???:
equals
???Permission
- ??:
obj
- The object to test for equality.- ??:
- true If obj is a
EndpointPermission
, and has the same name, actions and endpoint as thisEndpointPermission
object;false
otherwise.
-
hashCode
public int hashCode()Returns the hash code value for this object.- ???:
hashCode
???Permission
- ??:
- Hash code value for this object.
-