Syntax
SecResource
getResource
(
String
id
) throws SecException
Parameters
-
id –
unique identifier for the desired resource. Some security providers will also be able to return information on a resource if this "id" parameter contains the name of the resource rather than its ID. Since a resource name is not required/guaranteed to be unique, the resource returned may not be deterministic. Pass in resource names to this method at your own peril.
Returns
A SecResource wrapper for the specified resource.
Exceptions
-
SecException class –
if the resource cannot be identified by any providers.
-
IllegalStateException –
if the context has been destroyed.
Usage
A SecResource wrapper for the specified resource.