37 lines
644 B
Java
37 lines
644 B
Java
package org.gcube.common.scope;
|
|
|
|
import java.util.Collections;
|
|
import java.util.Map;
|
|
|
|
import org.gcube.common.security.Owner;
|
|
import org.gcube.common.security.secrets.Secret;
|
|
|
|
public class TestSecret extends Secret {
|
|
|
|
String context;
|
|
|
|
public TestSecret(String context){
|
|
this.context = context;
|
|
}
|
|
|
|
@Override
|
|
public Owner getOwner() {
|
|
return new Owner("test", Collections.emptyList(), false);
|
|
}
|
|
|
|
@Override
|
|
public String getContext() {
|
|
return this.context;
|
|
}
|
|
|
|
@Override
|
|
public Map<String, String> getHTTPAuthorizationHeaders() {
|
|
return Collections.emptyMap();
|
|
}
|
|
|
|
@Override
|
|
public boolean isExpired() {
|
|
return false;
|
|
}
|
|
}
|