Package eu.europa.esig.dss.model
Class SignerLocation
java.lang.Object
eu.europa.esig.dss.model.SignerLocation
- All Implemented Interfaces:
Serializable
public class SignerLocation extends Object implements Serializable
This class represents the information concerning
the signature production place.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SignerLocation()
The default constructor -
Method Summary
Modifier and Type Method Description void
addPostalAddress(String addressItem)
Adds an address item to the complete address.boolean
equals(Object obj)
String
getCountry()
Gets the countryString
getLocality()
Gets the locality (city)List<String>
getPostalAddress()
Gets the postal addressString
getPostalCode()
Gets the postal codeString
getPostOfficeBoxNumber()
Gets the post office box numberString
getStateOrProvince()
Gets the state or provinceString
getStreetAddress()
Gets 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
setStreet(String street)
Deprecated.void
setStreetAddress(String streetAddress)
Sets the street address NOTE: used in XAdES and JAdESString
toString()
-
Constructor Details
-
SignerLocation
public SignerLocation()The default constructor
-
-
Method Details
-
getCountry
Gets the country- Returns:
String
-
setCountry
Sets the country Can be a country name or its two-letter ISO 3166-1 alpha-2 country code- Parameters:
country
-String
-
getLocality
Gets the locality (city)- Returns:
String
-
setLocality
Sets the locality (city)- Parameters:
locality
-String
-
getPostalAddress
Gets the postal address- Returns:
- a list of
String
s
-
setPostalAddress
Sets the postal address NOTE: used in CAdES- Parameters:
postalAddress
- a list ofString
s
-
addPostalAddress
Adds an address item to the complete address. NOTE: used in CAdES- Parameters:
addressItem
- an address line
-
getPostalCode
Gets the postal code- Returns:
String
-
setPostalCode
Sets the postal code- Parameters:
postalCode
-String
-
getPostOfficeBoxNumber
Gets the post office box number- Returns:
String
-
setPostOfficeBoxNumber
Sets the post office box number NOTE: used in JAdES- Parameters:
postOfficeBoxNumber
-String
-
getStateOrProvince
Gets the state or province- Returns:
String
-
setStateOrProvince
Sets the state or province (the region where the locality is)- Parameters:
stateOrProvince
-String
-
getStreetAddress
Gets the street address- Returns:
String
-
setStreet
Deprecated.Deprecated since DSS 5.8. UsesetStreetAddress(streetAddress)
- Parameters:
street
-String
-
setStreetAddress
Sets the street address NOTE: used in XAdES and JAdES- Parameters:
streetAddress
-String
-
isEmpty
public boolean isEmpty()Checks if the SignerLocation instance is empty- Returns:
- TRUE if none of the fields are filled in, FALSE otherwise
-
hashCode
public int hashCode() -
equals
-
toString
-