Package com.authlete.common.util
Class ClientMetadataControl
- java.lang.Object
- 
- com.authlete.common.util.MapControl
- 
- com.authlete.common.util.ClientMetadataControl
 
 
- 
 public class ClientMetadataControl extends MapControl Flags to control contents of a map that represents client metadata.- Since:
- 3.45
 
- 
- 
Constructor SummaryConstructors Constructor Description ClientMetadataControl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAliasPreferred()Get the flag whether to use the client ID alias as the value of theclient_idproperty when available.booleanisCustomIncluded()Get the flag indicating whether to include custom metadata.booleanisEntityIdPreferred()Get the flag whether to use the entity ID as the value of theclient_idproperty when available.booleanisSecretIncluded()Get the flag indicating whether to include theclient_secretproperty.ClientMetadataControlsetAliasPreferred(boolean preferred)Set the flag whether to use the client ID alias as the value of theclient_idproperty when available.ClientMetadataControlsetCustomIncluded(boolean included)Set the flag indicating whether to include custom metadata.ClientMetadataControlsetEntityIdPreferred(boolean preferred)Set the flag whether to use the entity ID as the value of theclient_idproperty when available.ClientMetadataControlsetFalseIncluded(boolean included)Set the flag indicating whether properties should be included even when their values are false.ClientMetadataControlsetNullIncluded(boolean included)Set the flag indicating whether properties should be included even when their values are null.ClientMetadataControlsetSecretIncluded(boolean included)Set the flag indicating whether to include theclient_secretproperty.ClientMetadataControlsetZeroIncluded(boolean included)Set the flag indicating whether properties should be included even when their values are zero.- 
Methods inherited from class com.authlete.common.util.MapControlisFalseIncluded, isNullIncluded, isZeroIncluded
 
- 
 
- 
- 
- 
Method Detail- 
setNullIncludedpublic ClientMetadataControl setNullIncluded(boolean included) Description copied from class:MapControlSet the flag indicating whether properties should be included even when their values are null.- Overrides:
- setNullIncludedin class- MapControl
- Parameters:
- included-- trueto include properties even when their values are null.- falsenot to include properties when their values are null.
- Returns:
- thisobject.
 
 - 
setZeroIncludedpublic ClientMetadataControl setZeroIncluded(boolean included) Description copied from class:MapControlSet the flag indicating whether properties should be included even when their values are zero.- Overrides:
- setZeroIncludedin class- MapControl
- Parameters:
- included-- trueto include properties even when their values are zero.- falsenot to include properties when their values are zero.
- Returns:
- thisobject.
 
 - 
setFalseIncludedpublic ClientMetadataControl setFalseIncluded(boolean included) Description copied from class:MapControlSet the flag indicating whether properties should be included even when their values are false.- Overrides:
- setFalseIncludedin class- MapControl
- Parameters:
- included-- trueto include properties even when their values are false.- falsenot to include properties when their values are false.
- Returns:
- thisobject.
 
 - 
isSecretIncludedpublic boolean isSecretIncluded() Get the flag indicating whether to include theclient_secretproperty.Note that the client_secretproperty is not included when the client type is not "confidential" (cf.Client.getClientType()).- Returns:
- trueif the- client_secretproperty is included.- falseif the- client_secretproperty is not included.
 
 - 
setSecretIncludedpublic ClientMetadataControl setSecretIncluded(boolean included) Set the flag indicating whether to include theclient_secretproperty.Note that the client_secretproperty is not included when the client type is not "confidential" (cf.Client.getClientType()).- Parameters:
- included-- trueto include the- client_secretproperty.- falsenot to include the- client_secretproperty.
- Returns:
- thisobject.
 
 - 
isCustomIncludedpublic boolean isCustomIncluded() Get the flag indicating whether to include custom metadata.- Returns:
- trueif custom metadata are included.- falseif custom metadata are not included.
 
 - 
setCustomIncludedpublic ClientMetadataControl setCustomIncluded(boolean included) Set the flag indicating whether to include custom metadata.- Parameters:
- included-- trueto include custom metadata.- falsenot to include custom metadata.
- Returns:
- thisobject.
 
 - 
isAliasPreferredpublic boolean isAliasPreferred() Get the flag whether to use the client ID alias as the value of theclient_idproperty when available.Note that the alias is not used if the alias feature is not enabled (cf. Client.isClientIdAliasEnabled()).- Returns:
- trueif the client ID alias is used as the value of the- client_idproperty when available.
 
 - 
setAliasPreferredpublic ClientMetadataControl setAliasPreferred(boolean preferred) Set the flag whether to use the client ID alias as the value of theclient_idproperty when available.Note that the alias is not used if the alias feature is not enabled (cf. Client.isClientIdAliasEnabled()).- Parameters:
- preferred-- trueto use the client ID alias as the value of the- client_idproperty when available.
- Returns:
- thisobject.
 
 - 
isEntityIdPreferredpublic boolean isEntityIdPreferred() Get the flag whether to use the entity ID as the value of theclient_idproperty when available.- Returns:
- trueif the entity ID is used as the value of the- client_idproperty when available.
 
 - 
setEntityIdPreferredpublic ClientMetadataControl setEntityIdPreferred(boolean preferred) Set the flag whether to use the entity ID as the value of theclient_idproperty when available.- Parameters:
- preferred-- trueto use the entity ID as the value of the- client_idproperty when available.
- Returns:
- thisobject.
 
 
- 
 
-