クラス TransactionToken

java.lang.Object
org.terasoluna.gfw.web.token.transaction.TransactionToken
すべての実装されたインタフェース:
Serializable

public class TransactionToken extends Object implements Serializable
Class representing the transaction token string
関連項目:
  • コンストラクタの詳細

    • TransactionToken

      public TransactionToken(String tokenString)
      Single argument constructor

      A valid tokenString should be in the following form: tokenName~tokenKey~tokenValue.
      By default an ~ (tilde) is used as a separator for the tokenString

      パラメータ:
      tokenString - token string
    • TransactionToken

      public TransactionToken(String tokenName, String tokenKey, String tokenValue)
      Multiple argument constructor.

      Receives token name, key and value separately. All the three form to make the token string in the following format: tokenName~tokenKey~tokenValue

      パラメータ:
      tokenName - toke name
      tokenKey - token key
      tokenValue - toke value
  • メソッドの詳細

    • getTokenName

      public String getTokenName()
      Getter method for token name
      戻り値:
      String token name
    • getTokenKey

      public String getTokenKey()
      Getter method for token key
      戻り値:
      String token key
    • getTokenValue

      public String getTokenValue()
      Getter method for token value
      戻り値:
      String token value
    • valid

      public boolean valid()
      Checks whether the an instance of TransactionToken is valid. Which means all values are present for all the three parts of TransactionToken
      戻り値:
      if all values are present, return true
    • getTokenString

      public String getTokenString()
      Returns the token string
      戻り値:
      token string