PushMechanism

Represents an instance of a Push authentication mechanism. Associated with an Account.

Constructors

Link copied to clipboard
private constructor(mechanismUID: String, issuer: String, accountName: String, type: String, secret: String, registrationEndpoint: String, authenticationEndpoint: String, timeCreated: Calendar)
Creates a Push mechanism with given data.

Types

Link copied to clipboard
open class PushBuilder
Builder class responsible for building a Push mechanism.

Properties

Link copied to clipboard
private open var account: Account
The Account associated with this mechanism
Link copied to clipboard
AccountName, or Username of the account for the issuer
Link copied to clipboard
private open var authenticationEndpoint: String
The authentication URL for Push mechanism
Link copied to clipboard
open val id: String
Unique identifier of the Mechanism
Link copied to clipboard
Issuer of the account
Link copied to clipboard
Uniquely identifiable UUID for current mechanism
Link copied to clipboard
val MFAUTH: String = "mfauth"
URI scheme for combined registration OATH and PUSH at once
Link copied to clipboard
val OATH: String = "otpauth"
URI scheme for OATH registration
Link copied to clipboard
val PUSH: String = "pushauth"
URI scheme for PUSH registration
Link copied to clipboard
List of PushNotification objects associated with this mechanism
Link copied to clipboard
private open var registrationEndpoint: String
The registration URL for Push mechanism
Link copied to clipboard
private val secret: String
The shared secret of the Mechanism
Link copied to clipboard
Date this object was stored
Link copied to clipboard
The type of the Mechanism

Functions

Link copied to clipboard
Returns a builder for creating the Push Mechanism.
Link copied to clipboard
abstract fun compareTo(p: T): Int
open fun compareTo(another: Mechanism): Int
Link copied to clipboard
open fun deserialize(jsonString: String): Mechanism
Deserializes the specified Json into an object of the Mechanism object.
open fun deserialize(jsonString: String): PushMechanism
Deserializes the specified Json into an object of the PushMechanism object.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getAccount(): Account
Gets the account object associated with the mechanism.
Link copied to clipboard
open fun getAccountId(): String
Gets the storage Account id associated with this Mechanism.
Link copied to clipboard
Get all of the notifications that belong to this Push mechanism.
Link copied to clipboard
The authentication URL for Push mechanism.
Link copied to clipboard
open fun getDate(milliSeconds: Long): Calendar
Return date from milliseconds.
Link copied to clipboard
Get pending notifications that belong to this Push mechanism.
Link copied to clipboard
The registration URL for Push mechanism.
Link copied to clipboard
open fun getSecret(): String
Get the string used to represent the shared secret of the mechanism.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
abstract fun matches(object: T): Boolean
Returns true if the two objects would conflict if added to a storage system.
Link copied to clipboard
open fun serialize(): String
Serializes the T object into its equivalent Json representation.
Link copied to clipboard
open fun setAccount(account: Account)
Sets the account object associated with the mechanism.
Link copied to clipboard
open fun setPushNotificationList(pushNotificationList: List<PushNotification>)
Link copied to clipboard
open fun toJson(): String
Creates a JSON string representation of T object.