Class UserTokenParameters


  • public final class UserTokenParameters
    extends Object
    Get User Token parameters.
    • Constructor Detail

      • UserTokenParameters

        public UserTokenParameters()
    • Method Detail

      • keyType

        public KeyType keyType()
        Get the keyType property: The Key to be used to generate token for user.
        Returns:
        the keyType value.
      • withKeyType

        public UserTokenParameters withKeyType​(KeyType keyType)
        Set the keyType property: The Key to be used to generate token for user.
        Parameters:
        keyType - the keyType value to set.
        Returns:
        the UserTokenParameters object itself.
      • expiry

        public OffsetDateTime expiry()
        Get the expiry property: 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.
      • withExpiry

        public UserTokenParameters withExpiry​(OffsetDateTime expiry)
        Set the expiry property: 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.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.