Package com.microsoft.jenkins.azuread
Class AzureAdUser
java.lang.Object
com.microsoft.jenkins.azuread.AzureAdUser
- All Implemented Interfaces:
Serializable
,org.springframework.security.core.userdetails.UserDetails
public final class AzureAdUser
extends Object
implements org.springframework.security.core.userdetails.UserDetails
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AzureAdUser
createFromActiveDirectoryUser
(com.microsoft.graph.models.User activeDirectoryUser) static AzureAdUser
createFromJwt
(org.jose4j.jwt.JwtClaims claims) boolean
List<org.springframework.security.core.GrantedAuthority>
getEmail()
getName()
int
hashCode()
boolean
boolean
boolean
boolean
void
setAuthorities
(List<AzureAdGroup> groups, String userPrincipalName) toString()
-
Method Details
-
createFromActiveDirectoryUser
public static AzureAdUser createFromActiveDirectoryUser(com.microsoft.graph.models.User activeDirectoryUser) -
createFromJwt
-
setAuthorities
-
equals
-
hashCode
public int hashCode() -
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getPassword
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
public boolean isAccountNonExpired()- Specified by:
isAccountNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()- Specified by:
isAccountNonLocked
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()- Specified by:
isCredentialsNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getTenantID
-
getObjectID
-
getUniqueName
-
getName
-
getEmail
-
getGroupOIDs
-
toString
-