Definitively removed the `UMATokensProvider` class since is no more useful to anyone
parent
664ea7b34c
commit
0182c41ec0
@ -1,30 +0,0 @@
|
||||
package org.gcube.portal.oidc.lr62;
|
||||
|
||||
public class UMATokensProvider {
|
||||
|
||||
public static UMATokensProvider instance = new UMATokensProvider();
|
||||
|
||||
private static final InheritableThreadLocal<String> threadToken = new InheritableThreadLocal<String>() {
|
||||
|
||||
@Override
|
||||
protected String initialValue() {
|
||||
return null;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
private UMATokensProvider() {
|
||||
}
|
||||
|
||||
public String get() {
|
||||
return threadToken.get();
|
||||
}
|
||||
|
||||
public void set(String jwt) {
|
||||
threadToken.set(jwt);
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
threadToken.remove();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue