java.lang.Object
org.codelibs.saml2.core.model.Contact

public class Contact extends Object
Contact class of Java Toolkit. A class that stores contact info
  • Constructor Details

    • Contact

      @Deprecated public Contact(String contactType, String givenName, String emailAddress)
      Constructor to specify minimal contact data.

      To maintain backward compatibility, a null given name and a null e-mail address are handled as being empty strings.

      Parameters:
      contactType - Contact type
      givenName - Contact given name
      emailAddress - Contact e-mail
    • Contact

      public Contact(String contactType, String company, String givenName, String surName, List<String> emailAddresses, List<String> telephoneNumbers)
      Constructor
      Parameters:
      contactType - Contact type
      company - Contact company
      givenName - Contact given name
      surName - Contact surname
      emailAddresses - Contact e-mails
      telephoneNumbers - Contact phone numbers
  • Method Details

    • getContactType

      public final String getContactType()
      Returns:
      string the contact type
    • getEmailAddress

      @Deprecated public final String getEmailAddress()
      Deprecated.
      this returns just the first e-mail address in getEmailAddresses()
      Returns:
      the contact email
    • getEmailAddresses

      public final List<String> getEmailAddresses()
      Returns:
      a list containing the contact e-mail addresses (never null)
    • getGivenName

      public final String getGivenName()
      Returns:
      the contact given name
    • getSurName

      public final String getSurName()
      Returns:
      the contact surname
    • getCompany

      public final String getCompany()
      Returns:
      the contact company
    • getTelephoneNumbers

      public final List<String> getTelephoneNumbers()
      Returns:
      a list containing the contact phone numbers (never null)