Package org.apereo.cas.ticket
Interface OAuth20Token
-
- All Superinterfaces:
java.lang.Comparable<org.apereo.cas.ticket.Ticket>,java.io.Serializable,org.apereo.cas.ticket.ServiceTicket,org.apereo.cas.ticket.Ticket
- All Known Subinterfaces:
OAuth20AccessToken,OAuth20Code,OAuth20RefreshToken
public interface OAuth20Token extends org.apereo.cas.ticket.ServiceTicketOAuth tokens are mostly like service tickets: they deal with authentication and service.- Since:
- 5.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apereo.cas.authentication.AuthenticationgetAuthentication()Get the current authentication.java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>getClaims()Collection of requested claims, if any.java.util.Set<java.lang.String>getScopes()Get requested scopes requested at the time of issuing this code.
-
-
-
Method Detail
-
getAuthentication
org.apereo.cas.authentication.Authentication getAuthentication()
Get the current authentication.- Returns:
- the current authentication.
-
getScopes
java.util.Set<java.lang.String> getScopes()
Get requested scopes requested at the time of issuing this code.- Returns:
- requested scopes.
-
getClaims
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getClaims()
Collection of requested claims, if any.- Returns:
- map of requested claims.
-
-