Class AuthenticatorPushService
- java.lang.Object
-
- org.forgerock.openam.core.rest.devices.services.EncryptedDeviceStorage
-
- org.forgerock.openam.core.rest.devices.services.push.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.forgerock.openam.core.rest.devices.services.EncryptedDeviceStorage
EncryptedDeviceStorage.SupportedEncryptionScheme
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_NAMEName of this service for reference purposes.static StringSERVICE_VERSIONVersion of this service.-
Fields inherited from class org.forgerock.openam.core.rest.devices.services.EncryptedDeviceStorage
options
-
-
Constructor Summary
Constructors Constructor Description AuthenticatorPushService(ServiceConfigManager serviceConfigManager, String realm)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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConfigStorageAttributeName()Retrieve this realm's attribute name, under which the JSON configuration is stored.DeviceSerialisationgetDeviceSerialisationStrategy()Returns the strategy used for storing devices as profile attributes.voidremoveAllUserDevices(AMIdentity id)Remove all user devices in a single call.-
Methods inherited from class org.forgerock.openam.core.rest.devices.services.EncryptedDeviceStorage
getDeviceSerialisationStrategy
-
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
Name of this service for reference purposes.- See Also:
- Constant Field Values
-
SERVICE_VERSION
public static final String SERVICE_VERSION
Version of this service.- See Also:
- Constant Field Values
-
-
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:DeviceServiceRetrieve this realm's attribute name, under which the JSON configuration is stored.- Specified by:
getConfigStorageAttributeNamein interfaceDeviceService- Returns:
- Plaintext attribute name.
-
getDeviceSerialisationStrategy
public DeviceSerialisation getDeviceSerialisationStrategy()
Description copied from interface:DeviceServiceReturns the strategy used for storing devices as profile attributes.- Specified by:
getDeviceSerialisationStrategyin interfaceDeviceService- Returns:
- the device profile storage strategy.
-
removeAllUserDevices
public void removeAllUserDevices(@Nonnull AMIdentity id) throws IdRepoException, SSOExceptionRemove 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.
-
-