Share via


UserTokenParameters Class

  • java.lang.Object
    • com.microsoft.azure.management.apimanagement.v2019_01_01.UserTokenParameters

public class UserTokenParameters

Get User Token parameters.

Constructor Summary

Constructor Description
UserTokenParameters()

Method Summary

Modifier and Type Method and Description
org.joda.time.DateTime expiry()

Get the Expiry time of the Token.

KeyType keyType()

Get the Key to be used to generate token for user.

UserTokenParameters withExpiry(DateTime expiry)

Set the Expiry time of the Token.

UserTokenParameters withKeyType(KeyType keyType)

Set the Key to be used to generate token for user.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

UserTokenParameters

public UserTokenParameters()

Method Details

expiry

public DateTime expiry()

Get the Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

the expiry value

keyType

public KeyType keyType()

Get the Key to be used to generate token for user. Possible values include: 'primary', 'secondary'.

Returns:

the keyType value

withExpiry

public UserTokenParameters withExpiry(DateTime expiry)

Set the Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Parameters:

expiry - the expiry value to set

Returns:

the UserTokenParameters object itself.

withKeyType

public UserTokenParameters withKeyType(KeyType keyType)

Set the Key to be used to generate token for user. Possible values include: 'primary', 'secondary'.

Parameters:

keyType - the keyType value to set

Returns:

the UserTokenParameters object itself.

Applies to