Class TokenRequestContext


  • public class TokenRequestContext
    extends java.lang.Object
    Contains details of a request to get a token.
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenRequestContext()
      Creates a token request instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TokenRequestContext addScopes​(java.lang.String... scopes)
      Adds one or more scopes to the request scopes.
      java.util.List<java.lang.String> getScopes()
      Gets the scopes required for the token.
      TokenRequestContext setScopes​(java.util.List<java.lang.String> scopes)
      Sets the scopes required for the token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenRequestContext

        public TokenRequestContext()
        Creates a token request instance.
    • Method Detail

      • getScopes

        public java.util.List<java.lang.String> getScopes()
        Gets the scopes required for the token.
        Returns:
        the scopes required for the token
      • setScopes

        public TokenRequestContext setScopes​(java.util.List<java.lang.String> scopes)
        Sets the scopes required for the token.
        Parameters:
        scopes - the scopes required for the token
        Returns:
        the TokenRequestContext itself
        Throws:
        java.lang.NullPointerException - if scopes is null
      • addScopes

        public TokenRequestContext addScopes​(java.lang.String... scopes)
        Adds one or more scopes to the request scopes.
        Parameters:
        scopes - one or more scopes to add
        Returns:
        the TokenRequestContext itself