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

com.identityx.auth.def.IResponseAuthenticator Maven / Gradle / Ivy

/*
* Copyright Daon.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.identityx.auth.def;

import java.io.UnsupportedEncodingException;
import java.util.Date;


public interface IResponseAuthenticator {

	/*
	 * Use this to add an authentication header to the response
	 */
	void authenticate(IResponse response, ITokenKey apiKey, Date date, String nonce) throws UnsupportedEncodingException;
	
	/*
	 * Client can use this to create the signature of a response. This can be matched against the signature attached by the server.  
	 */
	public String buildAuthorizationHeader(IResponse response, final ITokenKey apiKey, Date date,final String nonce) throws UnsupportedEncodingException;
	
	public String buildCanonicalResponse(final IResponse response);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy