Class OAuth2PasswordGrantRequest

    • Constructor Detail

      • OAuth2PasswordGrantRequest

        public OAuth2PasswordGrantRequest​(ClientRegistration clientRegistration,
                                          java.lang.String username,
                                          java.lang.String password)
        Constructs an OAuth2PasswordGrantRequest using the provided parameters.
        Parameters:
        clientRegistration - the client registration
        username - the resource owner's username
        password - the resource owner's password
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Returns the resource owner's username.
        Returns:
        the resource owner's username
      • getPassword

        public java.lang.String getPassword()
        Returns the resource owner's password.
        Returns:
        the resource owner's password