public class APIKeyConfiguration
extends java.lang.Object
Constructor and Description |
---|
APIKeyConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApiID()
Get the id the API key.
|
java.util.List<java.lang.String> |
getApproverGroupIds()
Gets the ids of all the approver groups.
|
java.lang.String |
getCompleteApprovalUsing()
Gets the user name using which the API key approval should be completed.
|
java.lang.String |
getExpirationInterval()
Gets the expiration interval for the API key.
|
ApprovalEmailConfiguration |
getKeyGenConfiguration()
Gets the email configuration for the APIkey generation request.
|
ApprovalEmailConfiguration |
getKeyRenewalConfiguration()
Gets the email configuration for the API Key renewal request.
|
EmailConfiguration |
getKeyRevokeConfiguration()
Gets the email configuration for API Key revocation.
|
java.lang.String |
getoAuth2TokenExpirationInterval()
Gets the expiration internal for the OAuth 2.0 token.
|
java.lang.String |
getRefreshLimit()
Gets an integer value which is the number of times the API key can be refreshed.
|
boolean |
isAny()
Checks if approval is required from anyone in the approval group.
|
boolean |
isAPIKey()
Checks if this an API key.
|
boolean |
isApprovalRequired()
Checks if approval is required for the API key.
|
boolean |
isDeactivate()
Checks whether the API key is deactivated or not.
|
boolean |
isOAuth()
Checks if OAuth is activated.
|
boolean |
isOAuthDeactivate()
Checks if OAuth is deactivated or not.
|
void |
setAny(boolean isAny)
Sets if anyone in the group can approve an API key request.
|
void |
setApiID(java.lang.String apiID)
Sets the API key.
|
void |
setAPIKey(boolean isAPIKey)
Sets whether the key is an API key or not.
|
void |
setApprovalRequired(boolean isApprovalRequired)
Sets whether approval for API key is required or not.
|
void |
setApproverGroupIds(java.util.List<java.lang.String> approverGroupIds)
Sets the ids the groups who can approve an API key request.
|
void |
setCompleteApprovalUsing(java.lang.String completeApprovalUsing)
Sets the user name who can complete the approval request.
|
void |
setDeactivate(boolean deactivate)
Sets whether the API key should be deactivated.
|
void |
setExpirationInterval(java.lang.String expirationInterval)
Sets the API key expiration interval.
|
void |
setKeyGenConfiguration(ApprovalEmailConfiguration keyGenConfiguration)
Sets the email configuration for the API key generation request.
|
void |
setKeyRenewalConfiguration(ApprovalEmailConfiguration keyRenewalConfiguration)
Sets the email configuration for the API Key renewal request.
|
void |
setKeyRevokeConfiguration(EmailConfiguration keyRevokeConfiguration)
Sets the email configuration for API Key revocation.
|
void |
setOAuth(boolean isOAuthActivate)
Sets whether OAuth should be active or not.
|
void |
setoAuth2TokenExpirationInterval(java.lang.String oAuth2TokenExpirationInterval)
Sets the OAuth 2.0 token expiration interval.
|
void |
setOAuthDeactivate(boolean isOAuthDeactivate)
Sets whether OAuth should be deactivated or not.
|
void |
setRefreshLimit(java.lang.String refreshLimit)
Sets the number of times the API key can be refreshed.
|
public java.lang.String getExpirationInterval()
public void setExpirationInterval(java.lang.String expirationInterval)
expirationInterval
- The expiration interval to setpublic boolean isApprovalRequired()
public void setApprovalRequired(boolean isApprovalRequired)
isApprovalRequired
- If true, approval will be requiredpublic boolean isAny()
public void setAny(boolean isAny)
isAny
- If true, anyone in the group can approvepublic java.util.List<java.lang.String> getApproverGroupIds()
List
of approver group ids.public void setApproverGroupIds(java.util.List<java.lang.String> approverGroupIds)
approverGroupIds
- The List
of approver group ids to set.public ApprovalEmailConfiguration getKeyGenConfiguration()
ApprovalEmailConfiguration
instancepublic void setKeyGenConfiguration(ApprovalEmailConfiguration keyGenConfiguration)
keyGenConfiguration
- The ApprovalEmailConfiguration
to setpublic ApprovalEmailConfiguration getKeyRenewalConfiguration()
ApprovalEmailConfiguration
instancepublic void setKeyRenewalConfiguration(ApprovalEmailConfiguration keyRenewalConfiguration)
keyRenewalConfiguration
- The ApprovalEmailConfiguration
instance to setpublic EmailConfiguration getKeyRevokeConfiguration()
EmailConfiguration
instancepublic void setKeyRevokeConfiguration(EmailConfiguration keyRevokeConfiguration)
keyRevokeConfiguration
- The EmailConfiguration
instance to setpublic java.lang.String getApiID()
public void setApiID(java.lang.String apiID)
apiID
- The UUID of the keypublic java.lang.String getCompleteApprovalUsing()
public void setCompleteApprovalUsing(java.lang.String completeApprovalUsing)
completeApprovalUsing
- The name of the userpublic boolean isDeactivate()
public void setDeactivate(boolean deactivate)
deactivate
- If true, the API key will be deactivatedpublic java.lang.String getRefreshLimit()
String
public void setRefreshLimit(java.lang.String refreshLimit)
refreshLimit
- The refresh limit to set.public boolean isOAuth()
public void setOAuth(boolean isOAuthActivate)
isOAuthActivate
- If true, OAuth will be activatedpublic boolean isAPIKey()
public void setAPIKey(boolean isAPIKey)
isAPIKey
- If true the key will be an API keypublic boolean isOAuthDeactivate()
public void setOAuthDeactivate(boolean isOAuthDeactivate)
isOAuthDeactivate
- If true, OAuth will be deactivatedpublic java.lang.String getoAuth2TokenExpirationInterval()
public void setoAuth2TokenExpirationInterval(java.lang.String oAuth2TokenExpirationInterval)
oAuth2TokenExpirationInterval
- The interval value to be set