Package org.apereo.cas.ticket.code
Interface OAuth20Code
-
- All Superinterfaces:
java.lang.Comparable<org.apereo.cas.ticket.Ticket>,OAuth20Token,java.io.Serializable,org.apereo.cas.ticket.ServiceTicket,org.apereo.cas.ticket.Ticket
public interface OAuth20Code extends OAuth20Token
An OAuth code is an OAuth token which can be used only once and has a short lifetime. It is used to grant access tokens.- Since:
- 5.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIXThe prefix for OAuth codes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetClientId()Gets client id.java.lang.StringgetCodeChallenge()The PKCE code challenge.java.lang.StringgetCodeChallengeMethod()The PKCE code challenge method.-
Methods inherited from interface org.apereo.cas.ticket.OAuth20Token
getAuthentication, getClaims, getScopes
-
-
-
-
Field Detail
-
PREFIX
static final java.lang.String PREFIX
The prefix for OAuth codes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCodeChallenge
java.lang.String getCodeChallenge()
The PKCE code challenge.- Returns:
- code challenge
-
getCodeChallengeMethod
java.lang.String getCodeChallengeMethod()
The PKCE code challenge method.- Returns:
- code challenge method (i.e. plain, S256, etc)
-
getClientId
java.lang.String getClientId()
Gets client id.- Returns:
- the client id
-
-