Package org.forgerock.android.auth
Class PushMechanism
- java.lang.Object
-
- org.forgerock.android.auth.Mechanism
-
- org.forgerock.android.auth.PushMechanism
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPushMechanism.PushBuilderBuilder class responsible for building a Push mechanism.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PushMechanism.PushBuilderbuilder()Returns a builder for creating the Push Mechanism.static PushMechanismdeserialize(java.lang.String jsonString)Deserializes the specified Json into an object of thePushMechanismobject.java.util.List<PushNotification>getAllNotifications()Get all of the notifications that belong to this Push mechanism.java.util.List<PushNotification>getPendingNotifications()Get pending notifications that belong to this Push mechanism.java.lang.StringtoJson()Creates a JSON string representation ofModelObjectobject.-
Methods inherited from class org.forgerock.android.auth.Mechanism
compareTo, equals, getAccountName, getId, getIssuer, getMechanismUID, getTimeAdded, getType, hashCode, matches
-
-
-
-
Method Detail
-
getAllNotifications
public java.util.List<PushNotification> getAllNotifications()
Get all of the notifications that belong to this Push mechanism.- Returns:
- The list of notifications.
-
getPendingNotifications
public java.util.List<PushNotification> getPendingNotifications()
Get pending notifications that belong to this Push mechanism.- Returns:
- The list of notifications.
-
toJson
public java.lang.String toJson()
Creates a JSON string representation ofModelObjectobject. Sensitive information are not exposed.
-
deserialize
public static PushMechanism deserialize(java.lang.String jsonString)
Deserializes the specified Json into an object of thePushMechanismobject.- Parameters:
jsonString- the json string representing the object to be deserialized- Returns:
- an
PushMechanismobject from the string. ReturnsnullifjsonStringisnull, ifjsonStringis empty or not able to parse it.
-
builder
public static PushMechanism.PushBuilder builder()
Returns a builder for creating the Push Mechanism.- Returns:
- The PushMechanism builder.
-
-