io.vrap.rmf.base.client.oauth2.InMemoryTokenStorage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmf-java-base Show documentation
Show all versions of rmf-java-base Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package io.vrap.rmf.base.client.oauth2;
import io.vrap.rmf.base.client.AuthenticationToken;
public class InMemoryTokenStorage implements TokenStorage {
private AuthenticationToken token;
public InMemoryTokenStorage() {
}
public InMemoryTokenStorage(AuthenticationToken token) {
this.token = token;
}
@Override
public AuthenticationToken getToken() {
return token;
}
@Override
public synchronized void setToken(AuthenticationToken token) {
this.token = token;
}
}