Examples of ValidateTokenResponse


Examples of org.platformlayer.auth.model.ValidateTokenResponse

    if (userEntity == null) {
      throw404NotFound();
    }

    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;
View Full Code Here

Examples of org.platformlayer.auth.model.ValidateTokenResponse

    } catch (AuthenticatorException e) {
      log.warn("Error while fetching user", e);
      throwInternalError();
    }

    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;
View Full Code Here

Examples of org.platformlayer.auth.v1.ValidateTokenResponse

    String url = "v2.0/tokens/" + tokenId;

    url += "?project=" + UrlUtils.urlEncode(projectId);

    try {
      ValidateTokenResponse response = doSimpleXmlRequest(HttpMethod.GET, url, null, ValidateTokenResponse.class);

      ValidateAccess access = response.getAccess();
      if (access == null) {
        return null;
      }

      // ProjectValidation project = access.getProject();
View Full Code Here

Examples of org.platformlayer.auth.v1.ValidateTokenResponse

    url += "?project=" + UrlUtils.urlEncode(projectKey);

    CertificateChainInfo chainInfo = CertificateChains.toModel(chain);

    try {
      ValidateTokenResponse response = doSimpleXmlRequest(HttpMethod.POST, url, chainInfo,
          ValidateTokenResponse.class);

      ValidateAccess access = response.getAccess();
      if (access == null) {
        return null;
      }

      UserValidation userInfo = access.getUser();
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.