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 Details

    • createFromActiveDirectoryUser

      public static AzureAdUser createFromActiveDirectoryUser(com.microsoft.graph.models.User activeDirectoryUser)
    • createFromJwt

      public static AzureAdUser createFromJwt(org.jose4j.jwt.JwtClaims claims)
    • setAuthorities

      public void setAuthorities(List<AzureAdGroup> groups, String userPrincipalName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAuthorities

      public List<org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonExpired

      public boolean isAccountNonExpired()
      Specified by:
      isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonLocked

      public boolean isAccountNonLocked()
      Specified by:
      isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Specified by:
      isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails
    • getTenantID

      public String getTenantID()
    • getObjectID

      public String getObjectID()
    • getUniqueName

      public String getUniqueName()
    • getName

      public String getName()
    • getEmail

      public String getEmail()
    • getGroupOIDs

      public List<String> getGroupOIDs()
    • toString

      public String toString()
      Overrides:
      toString in class Object