Package org.platformlayer.auth.services

Examples of org.platformlayer.auth.services.TokenInfo


    } catch (AuthenticatorException e) {
      log.warn("Error while checking system token", e);
      throwInternalError();
    }

    TokenInfo checkTokenInfo = tokenService.decodeToken(checkToken);
    if (checkTokenInfo == null || checkTokenInfo.hasExpired()) {
      throw404NotFound();
    }

    UserEntity userEntity = null;
    try {
View Full Code Here


      }

      long roundedTime = Long.parseLong(expiration, 16);
      long time = (roundedTime * TIME_GRANULARITY) + TIME_OFFSET;

      return new TokenInfo(flags, username, new Date(time), tokenSecret);
    } catch (Exception e) {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.auth.services.TokenInfo

Copyright © 2018 www.massapicom. 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.