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

com.msl.pdfier.commons.security.AccessControlService Maven / Gradle / Ivy

There is a newer version: 9.1.20
Show newest version
package com.msl.pdfier.commons.security;

import org.springframework.stereotype.Component;

@Component
public class AccessControlService {
	public AccessControlService() {
	}

	public boolean validReferrer(String referrer) {
		if ((referrer != null) && ((referrer.startsWith("http://pdfier.com"))
				|| (referrer.startsWith("http://www.pdfier.com")) || (referrer.startsWith("http://localhost/")))) {
			return true;
		}
		return false;
	}

	public boolean validLisence(String lisence) {
		if ((lisence != null) && (lisence.equals("Y2FuZGVsYWNpcmNlcm9zZW5kbw=="))) {
			return true;
		}
		return false;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy