Package com.tivoli.am.fim.fido.mediation
Class FIDO2RegistrationHelper
- java.lang.Object
-
- com.tivoli.am.fim.fido.mediation.FIDO2RegistrationHelper
-
public class FIDO2RegistrationHelper extends java.lang.ObjectWork with a users FIDO registrations. Example usage:var registrationHelper = new FIDO2RegistrationHelper(); var registrations = registrationHelper.getRegistrationsByUsername(username); for(var i = 0; i < registrations; i++) { var registration = registrations[i]; // Work with the registration }
-
-
Constructor Summary
Constructors Constructor Description FIDO2RegistrationHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FIDO2RegistrationgetRegistrationByCredId(java.lang.String credentialId)Retrieve a registration for a given credential Id.java.util.List<FIDO2Registration>getRegistrationsByUid(java.lang.String rpId, java.lang.String uid)Retrieve a registration for a given FIDO User Id.java.util.List<FIDO2Registration>getRegistrationsByUsername(java.lang.String username)get registrations for a given Verify Access usernamebooleanremoveRegistration(java.lang.String rpId, java.lang.String credentialId)Remove the registration for a particular credentialId
-
-
-
Method Detail
-
getRegistrationByCredId
public FIDO2Registration getRegistrationByCredId(java.lang.String credentialId) throws Fido2PersistenceException
Retrieve a registration for a given credential Id.- Parameters:
credentialId- as returned from the authenticator.- Returns:
- the registration as native JSON.
- Throws:
Fido2PersistenceException
-
getRegistrationsByUid
public java.util.List<FIDO2Registration> getRegistrationsByUid(java.lang.String rpId, java.lang.String uid) throws Fido2PersistenceException
Retrieve a registration for a given FIDO User Id.- Parameters:
Uid- as generated assigned to a user.- Returns:
- the registration as native JSON.
- Throws:
Fido2PersistenceException
-
getRegistrationsByUsername
public java.util.List<FIDO2Registration> getRegistrationsByUsername(java.lang.String username) throws Fido2PersistenceException
get registrations for a given Verify Access username- Parameters:
username- of the registrations to lookup return array of registrations, as native JSON.- Throws:
Fido2PersistenceException
-
removeRegistration
public boolean removeRegistration(java.lang.String rpId, java.lang.String credentialId) throws Fido2PersistenceExceptionRemove the registration for a particular credentialId- Parameters:
rpId- which the registration belonged tocredentialId- to remove- Returns:
- true: a registration was deleted / false : no registration deleted
- Throws:
Fido2PersistenceException
-
-