Package com.auth0.json.mgmt.grants
Class Grant
java.lang.Object
com.auth0.json.mgmt.grants.Grant
Class that represents an Auth0 Grant object. Related to the
GrantsEntity entity.-
Constructor Summary
Constructors -
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.voidsetAudience(String audience) Setter for the audience.voidsetClientId(String clientId) Setter for the application's client id.voidSetter for the scope.voidSetter 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.
-