/**
   * @param subjType Subject type.
   * @param subjId Subject ID.
   * @param tok Token.
   * @param params Parameters.
   * @return Next token.
   * @throws GridException If error occurred.
   */
  @Nullable
  public byte[] validate(
      GridSecuritySubjectType subjType,
      byte[] subjId,
      @Nullable byte[] tok,
      @Nullable Object params)
      throws GridException {
    assert sesHnd != null;

    return sesHnd.validate(subjType, subjId, tok, params);
  }
 /**
  * Checks if security check is enabled.
  *
  * @return {@code True} if secure session check is enabled.
  */
 public boolean securityEnabled() {
   return sesHnd.securityEnabled();
 }