com.msl.pdfier.commons.security.AccessControlService Maven / Gradle / Ivy
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