2122232425262728293031
OpenStackResponse response = keystone.tokens().authenticate(auth).request(); String tokenId = response.header("X-Subject-Token"); Token token = response.getEntity(Token.class); System.out.println(tokenId); System.out.println(token);