001 002package io.vrap.rmf.base.client.oauth2; 003 004import io.vrap.rmf.base.client.AuthenticationToken; 005 006public class InMemoryTokenStorage implements TokenStorage { 007 private AuthenticationToken token; 008 009 public InMemoryTokenStorage() { 010 } 011 012 public InMemoryTokenStorage(AuthenticationToken token) { 013 this.token = token; 014 } 015 016 @Override 017 public AuthenticationToken getToken() { 018 return token; 019 } 020 021 @Override 022 public synchronized void setToken(AuthenticationToken token) { 023 this.token = token; 024 } 025}