Class IssuerConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.IssuerConstraint
-
- All Implemented Interfaces:
Constraint
public class IssuerConstraint extends BaseConstraint
The class that represents the constraint forid_document/document/issuer
.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description IssuerConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IssuerConstraint
extract(Map<?,?> map, String key)
Create anIssuerConstraint
instance from an object in the given map.LeafConstraint
getCountry()
Get the constraint forcountry
.LeafConstraint
getName()
Get the constraint forname
.void
setCountry(LeafConstraint constraint)
Set the constraint forcountry
.void
setName(LeafConstraint constraint)
Set the constraint forname
.Map<String,Object>
toMap()
Create aMap
instance that represents this object in the way conforming to the structure defined in 5.
-
-
-
Method Detail
-
getName
public LeafConstraint getName()
Get the constraint forname
.- Returns:
- The constraint for
name
.
-
setName
public void setName(LeafConstraint constraint)
Set the constraint forname
.- Parameters:
constraint
- The constraint forname
.
-
getCountry
public LeafConstraint getCountry()
Get the constraint forcountry
.- Returns:
- The constraint for
country
.
-
setCountry
public void setCountry(LeafConstraint constraint)
Set the constraint forcountry
.- Parameters:
constraint
- The constraint forcountry
.
-
extract
public static IssuerConstraint extract(Map<?,?> map, String key) throws ConstraintException
Create anIssuerConstraint
instance from an object in the given map.- Parameters:
map
- A map that may contain"issuer"
.key
- The key that identifies the object in the map. In normal cases, the key is"issuer"
.- Returns:
- An
IssuerConstraint
instance that represents"issuer"
. Even if the map does not contain the given key, an instance ofIssuerConstraint
is returned. - Throws:
ConstraintException
- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
toMap
public Map<String,Object> toMap()
Description copied from class:BaseConstraint
Create aMap
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.- Overrides:
toMap
in classBaseConstraint
- Returns:
- A
Map
instance that represents this object. IfBaseConstraint.exists()
returnsfalse
orBaseConstraint.isNull()
returnstrue
, this method returns null.
-
-