Interface OAuthCodeFactory

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      OAuthCode create​(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, java.util.Collection<java.lang.String> scopes, java.lang.String codeChallenge, java.lang.String codeChallengeMethod)
      Create an OAuth code.
      • Methods inherited from interface org.apereo.cas.ticket.TicketFactory

        get
    • Method Detail

      • create

        OAuthCode create​(org.apereo.cas.authentication.principal.Service service,
                         org.apereo.cas.authentication.Authentication authentication,
                         org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket,
                         java.util.Collection<java.lang.String> scopes,
                         java.lang.String codeChallenge,
                         java.lang.String codeChallengeMethod)
        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
        Returns:
        the OAuth code