Class ProviderConstraint
- java.lang.Object
 - 
- com.authlete.common.assurance.constraint.BaseConstraint
 - 
- com.authlete.common.assurance.constraint.ProviderConstraint
 
 
 
- 
- All Implemented Interfaces:
 Constraint
public class ProviderConstraint extends BaseConstraint
The class that represents the constraint forutility_bill/provider.- Since:
 - 2.63
 - See Also:
 - OpenID Connect for Identity Assurance 1.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ProviderConstraint() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProviderConstraintextract(Map<?,?> map, String key)Create aProviderConstraintinstance from an object in the given map.LeafConstraintgetCountry()Get the constraint forcountry.LeafConstraintgetFormatted()Get the constraint forformatted.LeafConstraintgetLocality()Get the constraint forlocality.LeafConstraintgetName()Get the constraint forname.LeafConstraintgetPostalCode()Get the constraint forpostal_code.LeafConstraintgetRegion()Get the constraint forregion.LeafConstraintgetStreetAddress()Get the constraint forstreet_address.voidsetCountry(LeafConstraint constraint)Set the constraint forcountry.voidsetFormatted(LeafConstraint constraint)Set the constraint forformatted.voidsetLocality(LeafConstraint constraint)Set the constraint forlocality.voidsetName(LeafConstraint constraint)Set the constraint forname.voidsetPostalCode(LeafConstraint constraint)Set the constraint forpostal_code.voidsetRegion(LeafConstraint constraint)Set the constraint forregion.voidsetStreetAddress(LeafConstraint constraint)Set the constraint forstreet_address.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.
 
- 
getFormatted
public LeafConstraint getFormatted()
Get the constraint forformatted.- Returns:
 - The constraint for 
formatted. - Since:
 - 2.67
 
 
- 
setFormatted
public void setFormatted(LeafConstraint constraint)
Set the constraint forformatted.- Parameters:
 constraint- The constraint forformatted.- Since:
 - 2.67
 
 
- 
getStreetAddress
public LeafConstraint getStreetAddress()
Get the constraint forstreet_address.- Returns:
 - The constraint for 
street_address. 
 
- 
setStreetAddress
public void setStreetAddress(LeafConstraint constraint)
Set the constraint forstreet_address.- Parameters:
 constraint- The constraint forstreet_address.
 
- 
getLocality
public LeafConstraint getLocality()
Get the constraint forlocality.- Returns:
 - The constraint for 
locality. - Since:
 - 2.67
 
 
- 
setLocality
public void setLocality(LeafConstraint constraint)
Set the constraint forlocality.- Parameters:
 constraint- The constraint forlocality.- Since:
 - 2.67
 
 
- 
getRegion
public LeafConstraint getRegion()
Get the constraint forregion.- Returns:
 - The constraint for 
region. 
 
- 
setRegion
public void setRegion(LeafConstraint constraint)
Set the constraint forregion.- Parameters:
 constraint- The constraint forregion.
 
- 
getPostalCode
public LeafConstraint getPostalCode()
Get the constraint forpostal_code.- Returns:
 - The constraint for 
postal_code. - Since:
 - 2.67
 
 
- 
setPostalCode
public void setPostalCode(LeafConstraint constraint)
Set the constraint forpostal_code.- Parameters:
 constraint- The constraint forpostal_code.- Since:
 - 2.67
 
 
- 
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 ProviderConstraint extract(Map<?,?> map, String key) throws ConstraintException
Create aProviderConstraintinstance from an object in the given map.- Parameters:
 map- A map that may contain"provider".key- The key that identifies the object in the map. In normal cases, the key is"provider".- Returns:
 - A 
ProviderConstraintinstance that represents"provider". Even if the map does not contain the given key, an instance ofProviderConstraintis 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. 
 
 - 
 
 -