getSubject method
Gets a subject, which associates a certificate identity with authentication attempts. The subject stores auditing information such as the status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication.
Required permissions: rolesanywhere:GetSubject.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
Parameter subjectId :
The unique identifier of the subject.
Implementation
Future<SubjectDetailResponse> getSubject({
required String subjectId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/subject/${Uri.encodeComponent(subjectId)}',
exceptionFnMap: _exceptionFns,
);
return SubjectDetailResponse.fromJson(response);
}