Class GoogleAPICredentialRequestor

java.lang.Object
org.opencastproject.publication.youtube.auth.GoogleAPICredentialRequestor

public final class GoogleAPICredentialRequestor extends Object
GoogleAPICredentialRequestor obtains credentials from Google and persists them in a data store on the local file system for later use when invoking the Google Data API V3 to upload a file to YouTube.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    The authorization process is dependent on authorization context parameters which is data that is required to execute the request and persist the result: client secrets - a file containing the client id and password credentialDatastore - name of the datastore which stores tokens dataStoreDirectory - location of the datastore in the file system

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • main

      public static void main(String[] args) throws IOException, org.json.simple.parser.ParseException
      The authorization process is dependent on authorization context parameters which is data that is required to execute the request and persist the result:
      • client secrets - a file containing the client id and password
      • credentialDatastore - name of the datastore which stores tokens
      • dataStoreDirectory - location of the datastore in the file system
      Parameters:
      args - override parameters
      Throws:
      IOException
      org.json.simple.parser.ParseException