All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.onelogin.saml2.model.Contact Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
package com.onelogin.saml2.model;


/**
 * Contact class of OneLogin's Java Toolkit.
 *
 * A class that stores contact info 
 */
public class Contact {
	/**
     * Contact type
     */
	private final String contactType;

	/**
     * Contact given name
     */
	private final String givenName;

	/**
     * Contact email
     */
	private final String emailAddress;

	/**
	 * Constructor
	 *
	 * @param contactType
	 *              String. Contact type
	 * @param givenName
     *				String. Contact given name
	 * @param emailAddress
     *				String. Contact email
	 */
	public Contact(String contactType, String givenName, String emailAddress) {
		this.contactType = contactType != null? contactType : "";
		this.givenName = givenName != null? givenName : "";
		this.emailAddress = emailAddress != null? emailAddress : "";
	}

	/**
	 * @return string the contact type
	 */
	public final String getContactType() {
		return contactType;
	}

	/**
	 * @return string the contact email
	 */
	public final String getEmailAddress() {
		return emailAddress;
	}

	/**
	 * @return string the contact given name
	 */
	public final String getGivenName() {
		return givenName;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy