public static class PushMechanism.PushBuilder
extends java.lang.Object
| Constructor and Description |
|---|
PushBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected PushMechanism |
build()
Produce the described Mechanism.
|
PushMechanism.PushBuilder |
setAccountName(java.lang.String accountName)
Sets the name of the account.
|
PushMechanism.PushBuilder |
setAuthenticationEndpoint(java.lang.String endpoint)
Set the endpoint that will be used for Push authentication
|
PushMechanism.PushBuilder |
setIssuer(java.lang.String issuer)
Sets the name of the IDP that issued this account.
|
PushMechanism.PushBuilder |
setMechanismUID(java.lang.String mechanismUID)
Sets the mechanism unique Id.
|
PushMechanism.PushBuilder |
setRegistrationEndpoint(java.lang.String endpoint)
Set the endpoint that will be used for Push registration.
|
PushMechanism.PushBuilder |
setSecret(java.lang.String secret)
Set the secret that this mechanism shares with the server.
|
PushMechanism.PushBuilder |
setTimeAdded(java.util.Calendar timeAdded)
Sets the Date and Time this mechanism was stored.
|
public PushMechanism.PushBuilder setMechanismUID(java.lang.String mechanismUID)
mechanismUID - the mechanism unique Idpublic PushMechanism.PushBuilder setIssuer(java.lang.String issuer)
issuer - The IDP namepublic PushMechanism.PushBuilder setAccountName(java.lang.String accountName)
accountName - The account namepublic PushMechanism.PushBuilder setRegistrationEndpoint(java.lang.String endpoint)
endpoint - The endpoint to register the device for Pushpublic PushMechanism.PushBuilder setAuthenticationEndpoint(java.lang.String endpoint)
endpoint - The endpoint to respond Push messages to.public PushMechanism.PushBuilder setSecret(java.lang.String secret)
secret - The shared secretpublic PushMechanism.PushBuilder setTimeAdded(java.util.Calendar timeAdded)
timeAdded - when this mechanism was stored.protected PushMechanism build() throws MechanismCreationException
MechanismCreationException - If an issuer or accountName were not provided.