Is there any way to authenticate the application to use the Google Drive API without a native browser in an embedded system? 

I'm looking for a solution to the user accepts and put your password and username using the OAuth2.0 without browser interactions... Is it possible?

My applications is build in Java Code.

Thanks in advance.