Interface OAuth20AccessTokenFactory

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

    public interface OAuth20AccessTokenFactory
    extends org.apereo.cas.ticket.TicketFactory
    Factory to create OAuth access tokens.
    Since:
    5.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default OAuth20AccessToken create​(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.authentication.Authentication authentication, java.util.Collection<java.lang.String> scopes, java.lang.String clientId, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType)
      Create access token.
      OAuth20AccessToken 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 token, java.lang.String clientId, java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> requestClaims, OAuth20ResponseTypes responseType, OAuth20GrantTypes grantType)
      Create an access token.
      • Methods inherited from interface org.apereo.cas.ticket.TicketFactory

        get, getName, getTicketType
    • Method Detail

      • create

        OAuth20AccessToken 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 token,
                                  java.lang.String clientId,
                                  java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> requestClaims,
                                  OAuth20ResponseTypes responseType,
                                  OAuth20GrantTypes grantType)
        Create an access token.
        Parameters:
        service - the service
        authentication - the authentication
        ticketGrantingTicket - the ticket granting ticket
        scopes - the scopes
        token - the token
        clientId - the client id
        requestClaims - the request claims
        responseType - the response type
        grantType - the grant type
        Returns:
        the access token
      • create

        default OAuth20AccessToken create​(org.apereo.cas.authentication.principal.Service service,
                                          org.apereo.cas.authentication.Authentication authentication,
                                          java.util.Collection<java.lang.String> scopes,
                                          java.lang.String clientId,
                                          OAuth20ResponseTypes responseType,
                                          OAuth20GrantTypes grantType)
        Create access token.
        Parameters:
        service - the service
        authentication - the authentication
        scopes - the scopes
        clientId - the client id
        responseType - the response type
        grantType - the grant type
        Returns:
        the access token