Package com.onelogin.saml2.model
Class Contact
java.lang.Object
com.onelogin.saml2.model.Contact
Contact class of OneLogin's Java Toolkit.
A class that stores contact info
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
contactType
Contact type -
company
Contact company -
givenName
Contact given name -
surName
Contact surname -
emailAddresses
Contact email -
telephoneNumbers
Contact phone number
-
-
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)