Class AuthenticatorPushService

  • All Implemented Interfaces:
    DeviceService

    public class AuthenticatorPushService
    extends EncryptedDeviceStorage
    implements DeviceService
    Implementation of the Push Service. Provides all necessary configuration information at a realm-wide level to Push authentication modules underneath it.
    • Constructor Detail

      • AuthenticatorPushService

        public AuthenticatorPushService​(ServiceConfigManager serviceConfigManager,
                                        String realm)
                                 throws SMSException,
                                        SSOException
        Generates a new AuthenticatorPushStorage, used to encrypt and store device settings on a user's profile under a config storage attribute provided by the service looked up on instance creation.
        Parameters:
        serviceConfigManager - Used to communicate with the config store.
        realm - The realm in which to look up the AuthenticatorPush service.
        Throws:
        SMSException - If there were error communicating with the SMS.
        SSOException - If there were invalid privileges to perform the requested operation.
    • Method Detail

      • getConfigStorageAttributeName

        public String getConfigStorageAttributeName()
        Description copied from interface: DeviceService
        Retrieve this realm's attribute name, under which the JSON configuration is stored.
        Specified by:
        getConfigStorageAttributeName in interface DeviceService
        Returns:
        Plaintext attribute name.
      • removeAllUserDevices

        public void removeAllUserDevices​(@Nonnull
                                         AMIdentity id)
                                  throws IdRepoException,
                                         SSOException
        Remove all user devices in a single call.
        Parameters:
        id - User ID from which to remove all devices.
        Throws:
        IdRepoException - If there were error communicating with the user's profile.
        SSOException - If there were invalid privileges to perform the requested operation.