Examples of InvalidToken


Examples of com.floreysoft.jmte.token.InvalidToken

  public Object getValue(Map<String, Object> model, String expression) {
    String[] split = expression.split("\\.");
    List<String> segments = Arrays.asList(split);
    ErrorHandler errorHandler = new NoLogErrorHandler();
    Token token = new InvalidToken();
    Object value = traverse(segments, model, errorHandler, token);
    return value;
  }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

    @Override
    public long renewDelegationToken(Token<DelegationTokenIdentifier> t)
    throws InvalidToken, IOException {
      MyToken token = (MyToken)t;
      if(token.isCanceled()) {
        throw new InvalidToken("token has been canceled");
      }
      counter ++;
      this.token = (MyToken)token;
      System.out.println("Called MYDFS.renewdelegationtoken " + token);
      if(tokenToRenewIn2Sec == token) {
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

 
  public static class BadTokenSecretManager extends TestTokenSecretManager {

    public byte[] retrievePassword(TestTokenIdentifier id)
        throws InvalidToken {
      throw new InvalidToken(ERROR_MESSAGE);
    }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

    T tokenIdentifier = secretManager.createIdentifier();
    try {
      tokenIdentifier.readFields(new DataInputStream(new ByteArrayInputStream(
          tokenId)));
    } catch (IOException e) {
      throw (InvalidToken) new InvalidToken(
          "Can't de-serialize tokenIdentifier").initCause(e);
    }
    return tokenIdentifier;
  }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

        context.getContainerTokenSecretManager().retrievePassword(
          containerTokenIdentifier);
    byte[] tokenPass = token.getPassword().array();
    if (password == null || tokenPass == null
        || !Arrays.equals(password, tokenPass)) {
      throw new InvalidToken(
        "Invalid container token used for starting container on : "
            + context.getNodeId().toString());
    }
    return containerTokenIdentifier;
  }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

  public long getRenewDate(RMDelegationTokenIdentifier ident)
      throws InvalidToken {
    DelegationTokenInformation info = currentTokens.get(ident);
    if (info == null) {
      throw new InvalidToken("token (" + ident.toString()
          + ") can't be found in cache");
    }
    return info.getRenewDate();
  }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

        context.getContainerTokenSecretManager().retrievePassword(
          containerTokenIdentifier);
    byte[] tokenPass = token.getPassword().array();
    if (password == null || tokenPass == null
        || !Arrays.equals(password, tokenPass)) {
      throw new InvalidToken(
        "Invalid container token used for starting container on : "
            + context.getNodeId().toString());
    }
    return containerTokenIdentifier;
  }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

      return null;
    }
    ShortCircuitCache cache = clientContext.getShortCircuitCache();
    ExtendedBlockId key = new ExtendedBlockId(block.getBlockId(), block.getBlockPoolId());
    ShortCircuitReplicaInfo info = cache.fetchOrCreate(key, this);
    InvalidToken exc = info.getInvalidTokenException();
    if (exc != null) {
      if (LOG.isTraceEnabled()) {
        LOG.trace(this + ": got InvalidToken exception while trying to " +
            "construct BlockReaderLocal via " + pathInfo.getPath());
      }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

          "attempting to set up short-circuit access to " +
          fileName + resp.getMessage();
      if (LOG.isDebugEnabled()) {
        LOG.debug(this + ":" + msg);
      }
      return new ShortCircuitReplicaInfo(new InvalidToken(msg));
    default:
      LOG.warn(this + ": unknown response code " + resp.getStatus() +
          " while attempting to set up short-circuit access. " +
          resp.getMessage());
      clientContext.getDomainSocketFactory()
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager.InvalidToken

    @Override
    public long renew(Token<?> t, Configuration conf) throws IOException {
      MyToken token = (MyToken)t;
      if(token.isCanceled()) {
        throw new InvalidToken("token has been canceled");
      }
      lastRenewed = token;
      counter ++;
      LOG.info("Called MYDFS.renewdelegationtoken " + token +
          ";this dfs=" + this.hashCode() + ";c=" + counter);
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.