public class BrokeredIdentityContext extends Object
Represents all identity information obtained from an IdentityProvider
after a
successful authentication.
Constructor and Description |
---|
BrokeredIdentityContext(String id) |
public BrokeredIdentityContext(String id)
public String getId()
public void setId(String id)
public String getLegacyId()
public void setLegacyId(String legacyId)
public String getUsername()
public void setUsername(String username)
public String getModelUsername()
public void setModelUsername(String modelUsername)
public String getEmail()
public void setEmail(String email)
public String getBrokerSessionId()
public void setBrokerSessionId(String brokerSessionId)
public String getBrokerUserId()
public void setBrokerUserId(String brokerUserId)
public String getToken()
public void setToken(String token)
public IdentityProviderModel getIdpConfig()
public void setIdpConfig(IdentityProviderModel idpConfig)
public IdentityProvider getIdp()
public void setIdp(IdentityProvider idp)
public void removeUserAttribute(String attributeName)
public String getFirstName()
public void setFirstName(String firstName)
public String getLastName()
public void setLastName(String lastName)
public AuthenticationSessionModel getAuthenticationSession()
public void setAuthenticationSession(AuthenticationSessionModel authenticationSession)
public boolean hasMapperGrantedRole(String roleName)
roleName
- the name of the role.true
if a mapper has already granted the role; false
otherwise.public void addMapperGrantedRole(String roleName)
roleName
- the name of the role.@Deprecated public void setName(String name)
setFirstName(String)
and setLastName(String)
insteadname
- Copyright © 2021 JBoss by Red Hat. All rights reserved.