Enum OAuth2CodeGrantFlow.Phase

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Phase()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      private static void nonNullProperty​(java.lang.String key, java.lang.String value, java.util.Map<java.lang.String,​java.lang.String> props)  
      abstract void property​(java.lang.String key, java.lang.String value, java.util.Map<java.lang.String,​java.lang.String> authorizationProps, java.util.Map<java.lang.String,​java.lang.String> accessTokenProps, java.util.Map<java.lang.String,​java.lang.String> refreshTokenProps)
      Set property defined by key and value to the appropriate property map based on this phase.
      static OAuth2CodeGrantFlow.Phase valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static OAuth2CodeGrantFlow.Phase[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AUTHORIZATION

        public static final OAuth2CodeGrantFlow.Phase AUTHORIZATION
        Authorization phase. The phase when user is redirected to the authorization server to authorize the application.
      • ACCESS_TOKEN_REQUEST

        public static final OAuth2CodeGrantFlow.Phase ACCESS_TOKEN_REQUEST
        Requesting the access token phase.
      • REFRESH_ACCESS_TOKEN

        public static final OAuth2CodeGrantFlow.Phase REFRESH_ACCESS_TOKEN
        Refreshing the access token phase.
    • Constructor Detail

      • Phase

        private Phase()
    • Method Detail

      • values

        public static OAuth2CodeGrantFlow.Phase[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OAuth2CodeGrantFlow.Phase c : OAuth2CodeGrantFlow.Phase.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OAuth2CodeGrantFlow.Phase valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • property

        public abstract void property​(java.lang.String key,
                                      java.lang.String value,
                                      java.util.Map<java.lang.String,​java.lang.String> authorizationProps,
                                      java.util.Map<java.lang.String,​java.lang.String> accessTokenProps,
                                      java.util.Map<java.lang.String,​java.lang.String> refreshTokenProps)
        Set property defined by key and value to the appropriate property map based on this phase.
        Parameters:
        key - Property key.
        value - Property value.
        authorizationProps - Properties used in construction of redirect URI.
        accessTokenProps - Properties (parameters) used in access token request.
        refreshTokenProps - Properties (parameters) used in request for refreshing the access token.
      • nonNullProperty

        private static void nonNullProperty​(java.lang.String key,
                                            java.lang.String value,
                                            java.util.Map<java.lang.String,​java.lang.String> props)