Package com.microsoft.jenkins.azuread
Class AzureAuthenticationToken
- java.lang.Object
-
- com.microsoft.jenkins.azuread.AzureAuthenticationToken
-
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
public class AzureAuthenticationToken extends Object implements org.springframework.security.core.Authentication
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AzureAuthenticationToken(AzureAdUser user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.security.core.GrantedAuthority>
getAuthorities()
AzureAdUser
getAzureAdUser()
Object
getCredentials()
Object
getDetails()
String
getName()
Object
getPrincipal()
boolean
isAuthenticated()
void
setAuthenticated(boolean isAuthenticated)
String
toString()
-
-
-
Constructor Detail
-
AzureAuthenticationToken
public AzureAuthenticationToken(AzureAdUser user)
-
-
Method Detail
-
getAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.Authentication
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getDetails
public Object getDetails()
- Specified by:
getDetails
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticated
in interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Throws:
IllegalArgumentException
-
getAzureAdUser
public AzureAdUser getAzureAdUser()
-
-