Returns the profile attributes in a SecProfile object.
Syntax
SecProfile
getProfile
(
String
id
) throws SecException
Parameters
-
id –
unique identifier of the desired profile. The name of the profile is in general unique and can be used to lookup the profile.
Returns
the SecProfile wrapper for the specified profile if the caller has a role that is required to access the profile or if the profile does not require any roles to access the information.
Exceptions
-
IllegalStateException –
if the specified profile requires a role to access and there is no current authenticated subject or if the context has been destroyed.
-
SecException class –
if no such profile exists or the specified profile requires a role to access and if the authenticated subject is not in that role.
Usage
If the profile requires a role to access it and the caller does not have any of the required roles, then
SecException
is thrown.
This method is deprecated, there is no need to retrieve specific profile instances. Instead they are referenced by name when necessary.
the SecProfile wrapper for the specified profile if the caller has a role that is required to access the profile or if the profile does not require any roles to access the information.