Exemple #1
0
  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
      case PRINCIPAL:
        if (value == null) {
          unsetPrincipal();
        } else {
          setPrincipal((String) value);
        }
        break;

      case TOKEN_CLASS_NAME:
        if (value == null) {
          unsetTokenClassName();
        } else {
          setTokenClassName((String) value);
        }
        break;

      case TOKEN:
        if (value == null) {
          unsetToken();
        } else {
          setToken((ByteBuffer) value);
        }
        break;

      case INSTANCE_ID:
        if (value == null) {
          unsetInstanceId();
        } else {
          setInstanceId((String) value);
        }
        break;
    }
  }
Exemple #2
0
 public byte[] getToken() {
   setToken(org.apache.thrift.TBaseHelper.rightSize(token));
   return token == null ? null : token.array();
 }