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 ProviderConstraint
extract(Map<?,?> map, String key)
Create aProviderConstraint
instance from an object in the given map.LeafConstraint
getCountry()
Get the constraint forcountry
.LeafConstraint
getFormatted()
Get the constraint forformatted
.LeafConstraint
getLocality()
Get the constraint forlocality
.LeafConstraint
getName()
Get the constraint forname
.LeafConstraint
getPostalCode()
Get the constraint forpostal_code
.LeafConstraint
getRegion()
Get the constraint forregion
.LeafConstraint
getStreetAddress()
Get the constraint forstreet_address
.void
setCountry(LeafConstraint constraint)
Set the constraint forcountry
.void
setFormatted(LeafConstraint constraint)
Set the constraint forformatted
.void
setLocality(LeafConstraint constraint)
Set the constraint forlocality
.void
setName(LeafConstraint constraint)
Set the constraint forname
.void
setPostalCode(LeafConstraint constraint)
Set the constraint forpostal_code
.void
setRegion(LeafConstraint constraint)
Set the constraint forregion
.void
setStreetAddress(LeafConstraint constraint)
Set the constraint forstreet_address
.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
.
-
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 aProviderConstraint
instance 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
ProviderConstraint
instance that represents"provider"
. Even if the map does not contain the given key, an instance ofProviderConstraint
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.
-
-