Package eu.europa.esig.dss.model
Class SignerLocation
java.lang.Object
eu.europa.esig.dss.model.SignerLocation
- All Implemented Interfaces:
Serializable
This class represents the information concerning
the signature production place.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPostalAddress
(String addressItem) Adds an address item to the complete address.boolean
Gets the countryGets the locality (city)Gets the postal addressGets the postal codeGets the post office box numberGets the state or provinceGets the street addressint
hashCode()
boolean
isEmpty()
Checks if the SignerLocation instance is emptyvoid
setCountry
(String country) Sets the country Can be a country name or its two-letter ISO 3166-1 alpha-2 country codevoid
setLocality
(String locality) Sets the locality (city)void
setPostalAddress
(List<String> postalAddress) Sets the postal address NOTE: used in CAdESvoid
setPostalCode
(String postalCode) Sets the postal codevoid
setPostOfficeBoxNumber
(String postOfficeBoxNumber) Sets the post office box number NOTE: used in JAdESvoid
setStateOrProvince
(String stateOrProvince) Sets the state or province (the region where the locality is)void
setStreetAddress
(String streetAddress) Sets the street address NOTE: used in XAdES and JAdEStoString()
-
Constructor Details
-
SignerLocation
public SignerLocation()The default constructor
-
-
Method Details
-
getCountry
-
setCountry
-
getLocality
-
setLocality
-
getPostalAddress
-
setPostalAddress
-
addPostalAddress
Adds an address item to the complete address. NOTE: used in CAdES- Parameters:
addressItem
- an address line
-
getPostalCode
-
setPostalCode
-
getPostOfficeBoxNumber
-
setPostOfficeBoxNumber
-
getStateOrProvince
-
setStateOrProvince
-
getStreetAddress
-
setStreetAddress
-
isEmpty
public boolean isEmpty()Checks if the SignerLocation instance is empty- Returns:
- TRUE if none of the fields are filled in, FALSE otherwise
-
hashCode
-
equals
-
toString
-