Examples of Token


Examples of org.openntf.formula.parse.Token

   * create a new node with ID and parser as reference
   */
  public SimpleNode(final AtFormulaParserImpl p, final int i) {
    id = i;
    parser = p;
    Token t = p.token;
    codeLine = t.beginLine;
    codeColumn = t.beginColumn;
  }
View Full Code Here

Examples of org.openqreg.bean.Token

   * @return a boolean, true if token is ok, else false
   */
  protected boolean checkToken(String sessionId, String externalToken) {
    this.getReadLockTokenTable();
    try {
      Token token = tokens.get(sessionId);
      if (null == token) {
        // no token for this sessionId
        return false;
      }
      if (!token.getTokenString().equals(externalToken)) {
        // no match external and internal token
        return false;
      }
      if ((tokenMaxLifeTime * 60000) < (new Date().getTime() - token
          .getIssuedTimeStamp().getTime())) {
        // token has passed maxLifeTime
        return false;
      }
      // token, match, still valid
View Full Code Here

Examples of org.opensocial.auth.OAuth3LeggedScheme.Token

  @Before
  public void setUp() throws Exception {
    if (client.getAuthScheme() instanceof OAuth3LeggedScheme) {
      OAuth3LeggedScheme scheme = (OAuth3LeggedScheme) client.getAuthScheme();
      // for 3-legged OAuth, ignore the process to get access token
      Token token = new Token("key", "secret");
      scheme.setAccessToken(token);
    }

    clear();
  }
View Full Code Here

Examples of org.openstack.docs.identity.api.v2.Token

        client.listTenants(fakeToken);
    }

    private KeystoneAuthenticationToken buildFakeToken(String tokenCode) {
        Access auth = new Access();
        Token tokenObject = new Token();
        tokenObject.setId(tokenCode);
        auth.setToken(tokenObject);
        return new KeystoneAuthenticationToken(auth);
    }
View Full Code Here

Examples of org.openstreetmap.josm.tools.template_engine.Tokenizer.Token

        return new Variable(variableName);
    }

    private void skipWhitespace() throws ParseError {
        Token token = tokenizer.lookAhead();
        if (token.getType() == TokenType.TEXT && token.getText().trim().isEmpty()) {
            tokenizer.nextToken();
        }
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.parser.Token

            final ArrayList images = new ArrayList();
            try
            {
                int brackets = 0;
                final GeneratedFormulaParserTokenManager tokenParser = new GeneratedFormulaParserTokenManager(new JavaCharStream(new StringReader(formula), 1, 1));
                Token token = tokenParser.getNextToken();
                while (token.kind != GeneratedFormulaParserConstants.EOF)
                {
                    final FormulaToken formulaToken;
                    images.add(token.image);
                    final String upper = token.image.toUpperCase();
View Full Code Here

Examples of org.platformlayer.auth.model.Token

    ValidateTokenResponse response = new ValidateTokenResponse();
    response.access = new ValidateAccess();
    response.access.user = Mapping.mapToUserValidation(userEntity);

    response.access.token = new Token();
    response.access.token.expires = checkTokenInfo.expiration;
    response.access.token.id = checkToken;

    String checkProject = project;
View Full Code Here

Examples of org.python.parser.Token

    // if reader != null, reset it
    public static PyException fixParseError(ReaderCharStream reader, Throwable t, String filename) {
        if (t instanceof ParseException) {
            ParseException e = (ParseException) t;
            Token tok = e.currentToken;
            int col = 0;
            int line = 0;
            if (tok != null && tok.next != null) {
                col = tok.next.beginColumn;
                line = tok.next.beginLine;
View Full Code Here

Examples of org.python.pydev.parser.jython.Token

                IRegion endLine = doc.getLineInformationOfOffset(doc.getLength());
                errorStart = endLine.getOffset();
                errorEnd = endLine.getOffset() + endLine.getLength();

            } else {
                Token errorToken = parseErr.currentToken.next != null ? parseErr.currentToken.next
                        : parseErr.currentToken;
                IRegion startLine = doc.getLineInformation(getDocPosFromAstPos(errorToken.beginLine));
                IRegion endLine;
                if (errorToken.endLine == 0) {
                    endLine = startLine;
View Full Code Here

Examples of org.restlet.ext.oauth.internal.Token

        } else {
            user = client.createUser(userId);
        }

        // TODO generate token and keep for a while.
        Token token = generator.generateToken(user, tokenTimeSec);
        StringBuilder location = new StringBuilder(redirURL);
        location.append("#access_token=").append(token.getToken());

        // TODO add expires
        appendState(location);

        // Sets the no-store Cache-Control header
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.