Class ArgosOAuth2User
- java.lang.Object
-
- com.argosnotary.argos.service.security.oauth2.ArgosOAuth2User
-
- All Implemented Interfaces:
org.springframework.security.core.AuthenticatedPrincipal,org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal,org.springframework.security.oauth2.core.user.OAuth2User
public class ArgosOAuth2User extends Object implements org.springframework.security.oauth2.core.user.OAuth2User
-
-
Constructor Summary
Constructors Constructor Description ArgosOAuth2User(org.springframework.security.oauth2.core.user.OAuth2User oAuth2User, String accountId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccountId()<A> AgetAttribute(String name)Map<String,Object>getAttributes()Collection<? extends org.springframework.security.core.GrantedAuthority>getAuthorities()StringgetName()
-
-
-
Constructor Detail
-
ArgosOAuth2User
public ArgosOAuth2User(org.springframework.security.oauth2.core.user.OAuth2User oAuth2User, String accountId)
-
-
Method Detail
-
getAttribute
public <A> A getAttribute(String name)
- Specified by:
getAttributein interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
-
getAttributes
public Map<String,Object> getAttributes()
- Specified by:
getAttributesin interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
-
getAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
getAccountId
public String getAccountId()
-
-