public class TimeConstraint extends LeafConstraint
max_age.| Constructor and Description |
|---|
TimeConstraint() |
| Modifier and Type | Method and Description |
|---|---|
static TimeConstraint |
extract(Map<?,?> map,
String key)
Create a
TimeConstraint instance from an object in the given map. |
long |
getMaxAge()
Get the value of
"max_age". |
void |
setMaxAge(long maxAge)
Set the value of
"max_age". |
Map<String,Object> |
toMap()
Create a
Map instance that represents this object in the way
conforming to the structure defined in 5. |
getValue, getValues, isEssential, setEssential, setValue, setValuespublic long getMaxAge()
"max_age"."max_age".public void setMaxAge(long maxAge)
"max_age".essential - The value of "max_age".public static TimeConstraint extract(Map<?,?> map, String key) throws ConstraintException
TimeConstraint instance from an object in the given map.map - A map that may contain a constraint.key - The key that identifies the object in the map.TimeConstraint instance that represents a constraint.
Even if the map does not contain the given key, an instance of
TimeConstraint is returned.ConstraintException - The structure of the map does not conform to the specification
(OpenID Connect for Identity Assurance 1.0).public Map<String,Object> toMap()
BaseConstraintMap instance that represents this object in the way
conforming to the structure defined in 5. Requesting Verified Claims of OpenID Connect for Identity Assurance 1.0.toMap in class LeafConstraintMap instance that represents this object.
If BaseConstraint.exists() returns false or BaseConstraint.isNull()
returns true, this method returns null.Copyright © 2021. All rights reserved.