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

org.apache.rahas.impl.util.SAMLNameIdentifierCallback Maven / Gradle / Ivy

There is a newer version: 1.7.1
Show newest version
package org.apache.rahas.impl.util;

import org.apache.rahas.RahasData;
import org.opensaml.SAMLNameIdentifier;

/**
 * This is used retrieve data for the SAMLNameIdentifier.
 * SAMLNameIdentifier can have different formats.
 * Depending on it, NameIdentifier must have different values.
 * It should be implementation specific.
 *
 */
public class SAMLNameIdentifierCallback implements SAMLCallback{
	
	private SAMLNameIdentifier nameId = null;
	private String userId = null;
	private RahasData data = null;
	
	public SAMLNameIdentifierCallback(RahasData data){
		this.data = data;
	}
	
	public int getCallbackType(){
		return SAMLCallback.NAME_IDENTIFIER_CALLBACK;
	}

	public SAMLNameIdentifier getNameId() {
		return nameId;
	}

	public void setNameId(SAMLNameIdentifier nameId) {
		this.nameId = nameId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserId() {
		return userId;
	}

	public RahasData getData() {
		return data;
	}
		
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy