java.lang.Object
org.codelibs.saml2.core.model.Contact
Contact class of Java Toolkit.
A class that stores contact info
-
Constructor Details
-
Contact
Deprecated.Constructor to specify minimal contact data.To maintain backward compatibility, a
nullgiven name and anulle-mail address are handled as being empty strings.- Parameters:
contactType- Contact typegivenName- Contact given nameemailAddress- Contact e-mail
-
Contact
public Contact(String contactType, String company, String givenName, String surName, List<String> emailAddresses, List<String> telephoneNumbers) Constructor- Parameters:
contactType- Contact typecompany- Contact companygivenName- Contact given namesurName- Contact surnameemailAddresses- Contact e-mailstelephoneNumbers- Contact phone numbers
-
-
Method Details
-
getContactType
- Returns:
- string the contact type
-
getEmailAddress
Deprecated.this returns just the first e-mail address ingetEmailAddresses()- Returns:
- the contact email
-
getEmailAddresses
- Returns:
- a list containing the contact e-mail addresses (never
null)
-
getGivenName
- Returns:
- the contact given name
-
getSurName
- Returns:
- the contact surname
-
getCompany
- Returns:
- the contact company
-
getTelephoneNumbers
- Returns:
- a list containing the contact phone numbers (never
null)
-
Contact(String, String, String, String, List, List)