Class OA2TokenForge

  • All Implemented Interfaces:
    TokenForge

    public class OA2TokenForge
    extends Object
    implements TokenForge

    Created by Jeff Gaynor
    on 6/4/13 at 4:21 PM

    • Constructor Detail

      • OA2TokenForge

        public OA2TokenForge​(String server)
    • Method Detail

      • metaCT

        protected URI metaCT​(IssuerRequest request,
                             edu.uiuc.ncsa.security.core.util.IP2 ip2)
        Does some grunt work of figuring out the lifetime then creates the URI. This is the token and is used to create the various implementations.
        Parameters:
        request -
        ip2 -
        Returns:
      • authzGrant

        protected String authzGrant​(String... x)
        This and similarly named methods are provided so you can override the specific path components and enforce your own semantics on the tokens. Note that these are called once and are immutable after that. If you need something really exotic you should override the setup() method.
        Returns:
      • accessToken

        protected String accessToken​(String... x)
      • refreshToken

        protected String refreshToken​(String... x)
      • verifierToken

        protected String verifierToken​(String... x)
      • getServer

        public String getServer()
      • getServerURI

        protected URI getServerURI()
      • getStringType

        public String getStringType​(String x)
        Takes a token (as a string) and returns a human-readable type of token. This is intended to be used in, e.g., logging applications.
        Parameters:
        x -
        Returns:
      • getType

        public int getType​(String x)
      • getAgIdProvider

        public edu.uiuc.ncsa.security.core.util.IP2<edu.uiuc.ncsa.security.core.Identifier> getAgIdProvider()
      • getAtIdProvider

        public edu.uiuc.ncsa.security.core.util.IP2<edu.uiuc.ncsa.security.core.Identifier> getAtIdProvider()
      • getRefreshTokenProvider

        public edu.uiuc.ncsa.security.core.util.IP2<edu.uiuc.ncsa.security.core.Identifier> getRefreshTokenProvider()
      • getIDTokenProvider

        public edu.uiuc.ncsa.security.core.util.IP2<edu.uiuc.ncsa.security.core.Identifier> getIDTokenProvider()
      • getVerifierTokenProvider

        public edu.uiuc.ncsa.security.core.util.IP2<edu.uiuc.ncsa.security.core.Identifier> getVerifierTokenProvider()
      • getURI

        protected URI getURI​(String token)
      • getVerifier

        public Verifier getVerifier​(javax.servlet.http.HttpServletRequest request)
        Specified by:
        getVerifier in interface TokenForge