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 IssuerConstraintextract(Map<?,?> map, String key)Create anIssuerConstraintinstance from an object in the given map.LeafConstraintgetCountry()Get the constraint forcountry.LeafConstraintgetName()Get the constraint forname.voidsetCountry(LeafConstraint constraint)Set the constraint forcountry.voidsetName(LeafConstraint constraint)Set the constraint forname.Map<String,Object>toMap()Create aMapinstance 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 anIssuerConstraintinstance 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
IssuerConstraintinstance that represents"issuer". Even if the map does not contain the given key, an instance ofIssuerConstraintis 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:BaseConstraintCreate aMapinstance 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:
toMapin classBaseConstraint- Returns:
- A
Mapinstance that represents this object. IfBaseConstraint.exists()returnsfalseorBaseConstraint.isNull()returnstrue, this method returns null.
-
-