
org.seedstack.oauth.internal.TokenPrincipalProvider Maven / Gradle / Ivy
The newest version!
/*
* Copyright © 2013-2021, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.oauth.internal;
import org.seedstack.oauth.OAuthAuthenticationToken;
import org.seedstack.seed.security.principals.PrincipalProvider;
class TokenPrincipalProvider implements PrincipalProvider {
private final OAuthAuthenticationToken token;
TokenPrincipalProvider(OAuthAuthenticationToken token) {
this.token = token;
}
@Override
public OAuthAuthenticationToken get() {
return token;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy