Interface OAuth20CodeFactory

All Superinterfaces:
org.apereo.cas.ticket.TicketFactory

public interface OAuth20CodeFactory extends org.apereo.cas.ticket.TicketFactory
Factory to create OAuth codes.
Since:
5.0.0
  • Field Summary

    Fields inherited from interface org.apereo.cas.ticket.TicketFactory

    BEAN_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, Collection<String> scopes, String codeChallenge, String codeChallengeMethod, String clientId, Map<String,Map<String,Object>> requestClaims, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType)
    Create an OAuth code.

    Methods inherited from interface org.apereo.cas.ticket.TicketFactory

    get, getExpirationPolicyBuilder, getName, getTicketType
  • Method Details

    • create

      OAuth20Code create(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, Collection<String> scopes, String codeChallenge, String codeChallengeMethod, String clientId, Map<String,Map<String,Object>> requestClaims, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType) throws Throwable
      Create an OAuth code.
      Parameters:
      service - the service
      authentication - the authentication
      ticketGrantingTicket - the ticket granting ticket
      scopes - the scopes
      codeChallenge - the code challenge
      codeChallengeMethod - the code challenge method
      clientId - the client id
      requestClaims - the claims
      responseType - the response type
      grantType - the grant type
      Returns:
      the OAuth code
      Throws:
      Throwable - the throwable