package eu.dnetlib.enabling.aas.wrappers;

import eu.dnetlib.enabling.aas.service.A2Constants;

/**
 * Factory for wrapper headers.
 * @author mhorst
 *
 */
public class HeaderFactory {

	/**
	 * Returns HeaderPart of SecurityContextWrapper.
	 * @return HeaderPart of SecurityContextWrapper
	 */
	public static HeaderPart buildSecurityContextWrapperHeader() {
		HeaderPart header = new HeaderPart();
		header.setResourceKind(A2Constants.RESOURCE_KIND_SECURITY_CONTEXT);
		header.setResourceType(A2Constants.RESOURCE_TYPE_SECURITY_CONTEXT);
		return header;
	}

	/**
	 * Returns HeaderPart of SecurityProfileWrapper.
	 * @return HeaderPart of SecurityProfileWrapper
	 */
	public static HeaderPart buildSecurityProfileWrapperHeader() {
		HeaderPart header = new HeaderPart();
		header.setResourceKind(A2Constants.RESOURCE_KIND_SECURITY_PROFILE);
		header.setResourceType(A2Constants.RESOURCE_TYPE_SECURITY_PROFILE);
		return header;
	}
	
	/**
	 * Returns HeaderPart of SecurityPolicyWrapper.
	 * @return HeaderPart of SecurityPolicyWrapper
	 */
	public static HeaderPart buildSecurityPolicyWrapperHeader() {
		HeaderPart header = new HeaderPart();
		header.setResourceKind(A2Constants.RESOURCE_KIND_SECURITY_POLICY);
		header.setResourceType(A2Constants.RESOURCE_TYPE_SECURITY_POLICY);
		return header;
	}
	
}
