View Javadoc
1   package fr.paris.lutece.util.signrequest;
2   
3   import java.util.HashMap;
4   import java.util.Map;
5   
6   
7   /**
8    * The Class AuthenticateRequestInformations.
9    */
10  public class AuthenticateRequestInformations {
11  	
12  	/** The security headers. */
13  	private Map<String,String> _securityHeaders=new HashMap<String, String>();
14  	
15  	/** The security parameters. */
16  	private Map<String,String> _securityParameters=new HashMap<String, String>();
17  	
18  	
19  	/**
20  	 * Gets the security headers.
21  	 *
22  	 * @return the security headers
23  	 */
24  	public Map<String,String> getSecurityHeaders()
25  	{
26  		return _securityHeaders;
27  	}
28  
29  	/**
30  	 * Gets the security parameteres.
31  	 *
32  	 * @return the security parameteres
33  	 */
34  	public Map<String,String> getSecurityParameteres()
35  	{
36  		return _securityParameters;
37  	}
38  	
39  	
40  	/**
41  	 * Adds the security parameter.
42  	 *
43  	 * @param strParam the str param
44  	 * @param strValue the str value
45  	 * @return the authenticate request informations
46  	 */
47  	public  AuthenticateRequestInformations addSecurityParameter(String strParam,String strValue)
48  	{
49  		_securityParameters.put(strParam, strValue);
50  		return  this;
51  	}
52  	
53  	/**
54  	 * Adds the security header.
55  	 *
56  	 * @param strParam the str param
57  	 * @param strValue the str value
58  	 * @return the authenticate request informations
59  	 */
60  	public  AuthenticateRequestInformations  addSecurityHeader(String strParam,String strValue)
61  	{
62  		_securityHeaders.put(strParam, strValue);
63  		return  this;
64  	}
65  	
66  	
67  	
68  	
69  	
70  }