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 Summary
Constructors Constructor Description ClientMetadataControl()
-
Method Summary
All 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.booleanisMetadataDocumentLocationPreferred()Get the flag whether to use the location of the client's metadata document 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.ClientMetadataControlsetMetadataDocumentLocationPreferred(boolean preferred)Set the flag whether to use the location of the client's metadata document as the value of theclient_idproperty when available.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.MapControl
isFalseIncluded, isNullIncluded, isZeroIncluded
-
-
-
-
Method Detail
-
setNullIncluded
public 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 classMapControl- Parameters:
included-trueto include properties even when their values are null.falsenot to include properties when their values are null.- Returns:
thisobject.
-
setZeroIncluded
public 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 classMapControl- Parameters:
included-trueto include properties even when their values are zero.falsenot to include properties when their values are zero.- Returns:
thisobject.
-
setFalseIncluded
public 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 classMapControl- Parameters:
included-trueto include properties even when their values are false.falsenot to include properties when their values are false.- Returns:
thisobject.
-
isSecretIncluded
public 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 theclient_secretproperty is included.falseif theclient_secretproperty is not included.
-
setSecretIncluded
public 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 theclient_secretproperty.falsenot to include theclient_secretproperty.- Returns:
thisobject.
-
isCustomIncluded
public boolean isCustomIncluded()
Get the flag indicating whether to include custom metadata.- Returns:
trueif custom metadata are included.falseif custom metadata are not included.
-
setCustomIncluded
public 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.
-
isAliasPreferred
public 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 theclient_idproperty when available.
-
setAliasPreferred
public 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 theclient_idproperty when available.- Returns:
thisobject.
-
isEntityIdPreferred
public 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 theclient_idproperty when available.- See Also:
- OpenID Federation 1.0
-
setEntityIdPreferred
public 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 theclient_idproperty when available.- Returns:
thisobject.- See Also:
- OpenID Federation 1.0
-
isMetadataDocumentLocationPreferred
public boolean isMetadataDocumentLocationPreferred()
Get the flag whether to use the location of the client's metadata document as the value of theclient_idproperty when available.- Returns:
trueif the location of the client's metadata document is used as the value of theclient_idproperty when available.- Since:
- 4.29, Authlete 3.0.22
- See Also:
- OAuth Client ID Metadata Document
-
setMetadataDocumentLocationPreferred
public ClientMetadataControl setMetadataDocumentLocationPreferred(boolean preferred)
Set the flag whether to use the location of the client's metadata document as the value of theclient_idproperty when available.- Parameters:
preferred-trueto use the location of the client's metadata document as the value of theclient_idproperty when available.- Returns:
thisobject.- Since:
- 4.29, Authlete 3.0.22
- See Also:
- OAuth Client ID Metadata Document
-
-