authenticate abstract method

Future<EnrollmentSession> authenticate({
  1. required String atSign,
  2. required String enrollmentId,
  3. required ApkamKeyPair apkamKeyPair,
})

Authenticates enrollmentId with apkamKeyPair.

Throws PkamRefusedException when classifyConnectionFailure reads the atServer's reply to the pkam: as a refusal whose cause is unauthenticated, revoked, enrollmentDenied or invalidEnrollment; any other failure, a pending enrollment or a failure before the pkam: included, propagates as it is.

Implementation

Future<EnrollmentSession> authenticate(
    {required String atSign,
    required String enrollmentId,
    required ApkamKeyPair apkamKeyPair});