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 boolean
isAliasPreferred()
Get the flag whether to use the client ID alias as the value of theclient_id
property when available.boolean
isCustomIncluded()
Get the flag indicating whether to include custom metadata.boolean
isEntityIdPreferred()
Get the flag whether to use the entity ID as the value of theclient_id
property when available.boolean
isSecretIncluded()
Get the flag indicating whether to include theclient_secret
property.ClientMetadataControl
setAliasPreferred(boolean preferred)
Set the flag whether to use the client ID alias as the value of theclient_id
property when available.ClientMetadataControl
setCustomIncluded(boolean included)
Set the flag indicating whether to include custom metadata.ClientMetadataControl
setEntityIdPreferred(boolean preferred)
Set the flag whether to use the entity ID as the value of theclient_id
property when available.ClientMetadataControl
setFalseIncluded(boolean included)
Set the flag indicating whether properties should be included even when their values are false.ClientMetadataControl
setNullIncluded(boolean included)
Set the flag indicating whether properties should be included even when their values are null.ClientMetadataControl
setSecretIncluded(boolean included)
Set the flag indicating whether to include theclient_secret
property.ClientMetadataControl
setZeroIncluded(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:MapControl
Set the flag indicating whether properties should be included even when their values are null.- Overrides:
setNullIncluded
in classMapControl
- Parameters:
included
-true
to include properties even when their values are null.false
not to include properties when their values are null.- Returns:
this
object.
-
setZeroIncluded
public ClientMetadataControl setZeroIncluded(boolean included)
Description copied from class:MapControl
Set the flag indicating whether properties should be included even when their values are zero.- Overrides:
setZeroIncluded
in classMapControl
- Parameters:
included
-true
to include properties even when their values are zero.false
not to include properties when their values are zero.- Returns:
this
object.
-
setFalseIncluded
public ClientMetadataControl setFalseIncluded(boolean included)
Description copied from class:MapControl
Set the flag indicating whether properties should be included even when their values are false.- Overrides:
setFalseIncluded
in classMapControl
- Parameters:
included
-true
to include properties even when their values are false.false
not to include properties when their values are false.- Returns:
this
object.
-
isSecretIncluded
public boolean isSecretIncluded()
Get the flag indicating whether to include theclient_secret
property.Note that the
client_secret
property is not included when the client type is not "confidential" (cf.Client.
getClientType()
).- Returns:
true
if theclient_secret
property is included.false
if theclient_secret
property is not included.
-
setSecretIncluded
public ClientMetadataControl setSecretIncluded(boolean included)
Set the flag indicating whether to include theclient_secret
property.Note that the
client_secret
property is not included when the client type is not "confidential" (cf.Client.
getClientType()
).- Parameters:
included
-true
to include theclient_secret
property.false
not to include theclient_secret
property.- Returns:
this
object.
-
isCustomIncluded
public boolean isCustomIncluded()
Get the flag indicating whether to include custom metadata.- Returns:
true
if custom metadata are included.false
if custom metadata are not included.
-
setCustomIncluded
public ClientMetadataControl setCustomIncluded(boolean included)
Set the flag indicating whether to include custom metadata.- Parameters:
included
-true
to include custom metadata.false
not to include custom metadata.- Returns:
this
object.
-
isAliasPreferred
public boolean isAliasPreferred()
Get the flag whether to use the client ID alias as the value of theclient_id
property when available.Note that the alias is not used if the alias feature is not enabled (cf.
Client.
isClientIdAliasEnabled()
).- Returns:
true
if the client ID alias is used as the value of theclient_id
property when available.
-
setAliasPreferred
public ClientMetadataControl setAliasPreferred(boolean preferred)
Set the flag whether to use the client ID alias as the value of theclient_id
property when available.Note that the alias is not used if the alias feature is not enabled (cf.
Client.
isClientIdAliasEnabled()
).- Parameters:
preferred
-true
to use the client ID alias as the value of theclient_id
property when available.- Returns:
this
object.
-
isEntityIdPreferred
public boolean isEntityIdPreferred()
Get the flag whether to use the entity ID as the value of theclient_id
property when available.- Returns:
true
if the entity ID is used as the value of theclient_id
property when available.
-
setEntityIdPreferred
public ClientMetadataControl setEntityIdPreferred(boolean preferred)
Set the flag whether to use the entity ID as the value of theclient_id
property when available.- Parameters:
preferred
-true
to use the entity ID as the value of theclient_id
property when available.- Returns:
this
object.
-
-