Package com.auth0.json.mgmt
Class Grant
java.lang.Object
com.auth0.json.mgmt.Grant
Class that represents an Auth0 Grant object. Related to the
GrantsEntity
entity.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the audience.Getter for the client id of the application.getId()
Getter for the id of the grant.getScope()
Getter for the scope.Getter for the user id.void
setAudience(String audience)
Setter for the audience.void
setClientId(String clientId)
Setter for the application's client id.void
Setter for the scope.void
Setter for the user id.
-
Constructor Details
-
Grant
public Grant()
-
-
Method Details
-
getId
Getter for the id of the grant.- Returns:
- the id.
-
getClientId
Getter for the client id of the application.- Returns:
- the application's client id.
-
setClientId
Setter for the application's client id.- Parameters:
clientId
- the application's client id to set.
-
getUserId
Getter for the user id.- Returns:
- the user id.
-
setUserId
Setter for the user id.- Parameters:
userId
- the user id to set.
-
getAudience
Getter for the audience.- Returns:
- the audience.
-
setAudience
Setter for the audience.- Parameters:
audience
- the audience to set.
-
getScope
Getter for the scope.- Returns:
- the scope.
-
setScope
Setter for the scope.- Parameters:
scope
- the scope to set.
-