Lists all known resources.
Syntax
List< Named >
listResources
(
Map< String, Object >
context
,
String
resourceTypeName
) throws SecException
Parameters
-
context –
CSI context
-
resourceTypeName –
limit results to this resource type. To request a list of resources of all known types, null is specified.
Returns
a List containing Named objects describing each resource.
Exceptions
-
SecException class –
Thrown if an error occurs. The exception will be logged and after that it is as if the method returned an empty list.
Usage
This method is indirectly called when the CSI client calls
SecContext.listResources()
and
SecContext.listResources(String resourceTypeName)
.
The implementor should first check to see if the specified resource type is a resource type that it understands and expects before performing any resource-intensive operations.
a List containing Named objects describing each resource.