Revision 59615
Added by Katerina Iatropoulou over 3 years ago
TokenUtils.java | ||
---|---|---|
16 | 16 |
import org.apache.http.impl.client.CloseableHttpClient; |
17 | 17 |
import org.apache.http.impl.client.HttpClients; |
18 | 18 |
import org.apache.log4j.Logger; |
19 |
import org.springframework.beans.factory.annotation.Value; |
|
19 | 20 |
import org.springframework.http.HttpStatus; |
20 | 21 |
|
21 | 22 |
import javax.xml.ws.Service; |
... | ... | |
23 | 24 |
import java.io.UnsupportedEncodingException; |
24 | 25 |
import java.lang.reflect.Type; |
25 | 26 |
import java.nio.charset.StandardCharsets; |
27 |
import java.util.Base64; |
|
26 | 28 |
import java.util.List; |
27 | 29 |
|
28 | 30 |
public class TokenUtils { |
29 | 31 |
|
30 |
Logger logger = Logger.getLogger(TokenUtils.class); |
|
32 |
private Logger logger = Logger.getLogger(TokenUtils.class);
|
|
31 | 33 |
|
32 | 34 |
public static String registerService(String userId, String name, String description, String email, String accessToken) |
33 | 35 |
throws IOException { |
Also available in: Unified diff
service registration with keys enabled