public class OidcUserAuthority extends OAuth2UserAuthority
GrantedAuthority that may be associated to an OidcUser.OidcUser,
Serialized Form| Constructor and Description |
|---|
OidcUserAuthority(OidcIdToken idToken)
Constructs a
OidcUserAuthority using the provided parameters. |
OidcUserAuthority(OidcIdToken idToken,
OidcUserInfo userInfo)
Constructs a
OidcUserAuthority using the provided parameters
and defaults OAuth2UserAuthority.getAuthority() to ROLE_USER. |
OidcUserAuthority(java.lang.String authority,
OidcIdToken idToken,
OidcUserInfo userInfo)
Constructs a
OidcUserAuthority using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
OidcIdToken |
getIdToken()
Returns the
ID Token containing claims about the user. |
OidcUserInfo |
getUserInfo()
Returns the
UserInfo containing claims about the user, may be null. |
int |
hashCode() |
getAttributes, getAuthority, toStringpublic OidcUserAuthority(OidcIdToken idToken)
OidcUserAuthority using the provided parameters.idToken - the ID Token containing claims about the userpublic OidcUserAuthority(OidcIdToken idToken, OidcUserInfo userInfo)
OidcUserAuthority using the provided parameters
and defaults OAuth2UserAuthority.getAuthority() to ROLE_USER.public OidcUserAuthority(java.lang.String authority,
OidcIdToken idToken,
OidcUserInfo userInfo)
OidcUserAuthority using the provided parameters.public OidcIdToken getIdToken()
ID Token containing claims about the user.OidcIdToken containing claims about the user.public OidcUserInfo getUserInfo()
UserInfo containing claims about the user, may be null.OidcUserInfo containing claims about the user, or nullpublic boolean equals(java.lang.Object obj)
equals in class OAuth2UserAuthoritypublic int hashCode()
hashCode in class OAuth2UserAuthority