code: @FFDCIgnore(InvalidTokenException.class)
      public Token recreateTokenFromBytes(byte[] tokenBytes) throws InvalidTokenException, TokenExpiredException {
          Token token = null;
  
          Iterator<TokenService> availableServices = services.getServices();
          while (availableServices.hasNext()) {
              TokenService tokenService = availableServices.next();
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(
                           tc,
                           "Trying to recreate token using token service "
                                           + tokenService
                                           + ". This will fail if the token was not created by this service and may fail if the configuration of the service which created the token has changed.");
              }
              try {
                  token = tokenService.recreateTokenFromBytes(tokenBytes);
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, "Successfully recreated token using token service " + tokenService + ".");
                  }
                  break;
              } catch (InvalidTokenException e) {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, "The token service " + tokenService + " failed to recreate the token.", e);
                  }
              }
          }
  
          if (token == null) {
              Tr.info(tc, "TOKEN_SERVICE_INVALID_TOKEN_INFO");
              String translatedMessage = TraceNLS.getStringFromBundle(this.getClass(),
                                                                      TraceConstants.MESSAGE_BUNDLE,
                                                                      "TOKEN_SERVICE_INVALID_TOKEN_INFO",
                                                                      "CWWKS4001I: The security token cannot be validated.");
              throw new InvalidTokenException(translatedMessage);
          }
  
          return token;
      }
docs: {@inheritDoc}