AuthHelperBeanLocal.java 610 Bytes
package fi.codecrew.moya.beans.auth;

import javax.ejb.Local;
import javax.servlet.ServletException;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

@Local
public interface AuthHelperBeanLocal {
	String parseHostname(HttpServletRequest httpRequest);


	RestAuthResponse parseRestAuthCredentials(HttpServletRequest httpRequest) throws ServletException;

	class RestAuthResponse {
		public final String username;
		public final String password;

		public RestAuthResponse(String username, String password) {
			this.username = username;
			this.password = password;
		}
	}
}