target.apidocs.com.google.api.services.directory.Directory.Tokens.html Maven / Gradle / Ivy
Directory.Tokens (Admin SDK API directory_v1-rev20220802-2.0.0)
com.google.api.services.directory
Class Directory.Tokens
- java.lang.Object
-
- com.google.api.services.directory.Directory.Tokens
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Directory.Tokens.Delete
class
Directory.Tokens.Get
class
Directory.Tokens.List
-
Constructor Summary
Constructors
Constructor and Description
Tokens()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Directory.Tokens.Delete
delete(String userKey,
String clientId)
Deletes all access tokens issued by a user for an application.
Directory.Tokens.Get
get(String userKey,
String clientId)
Gets information about an access token issued by a user.
Directory.Tokens.List
list(String userKey)
Returns the set of tokens specified user has issued to 3rd party applications.
-
-
Method Detail
-
delete
public Directory.Tokens.Delete delete(String userKey,
String clientId)
throws IOException
Deletes all access tokens issued by a user for an application.
Create a request for the method "tokens.delete".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
userKey
- Identifies the user in the API request. The value can be the user's primary email address, alias
email address, or unique user ID.
clientId
- The Client ID of the application the token is issued to.
- Returns:
- the request
- Throws:
IOException
-
get
public Directory.Tokens.Get get(String userKey,
String clientId)
throws IOException
Gets information about an access token issued by a user.
Create a request for the method "tokens.get".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
userKey
- Identifies the user in the API request. The value can be the user's primary email address, alias
email address, or unique user ID.
clientId
- The Client ID of the application the token is issued to.
- Returns:
- the request
- Throws:
IOException
-
list
public Directory.Tokens.List list(String userKey)
throws IOException
Returns the set of tokens specified user has issued to 3rd party applications.
Create a request for the method "tokens.list".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
userKey
- Identifies the user in the API request. The value can be the user's primary email address, alias
email address, or unique user ID.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.