Package org.fenixedu.academic.FenixEduAcademicConfiguration

Examples of org.fenixedu.academic.FenixEduAcademicConfiguration.ConfigurationProperties


        }

    }

    private static String getServiceAuth() {
        ConfigurationProperties config = FenixEduAcademicConfiguration.getConfiguration();
        String userpass =
                config.getWebServicesInternationalRegistrationUsername() + ":"
                        + config.getWebServicesInternationalRegistrationPassword();
        String encoding = new String(BaseEncoding.base64().encode(userpass.getBytes()));
        return "Basic " + encoding;
    }
View Full Code Here


        DateTime now = new DateTime();
        return now.isAfter(day.plusHours(24));
    }

    private static String getServiceAuth() {
        ConfigurationProperties config = FenixEduAcademicConfiguration.getConfiguration();
        String userpass = config.getFenixApiCanteenUser() + ":" + config.getFenixApiCanteenSecret();
        String encoding = new String(BaseEncoding.base64().encode(userpass.getBytes()));
        return "Basic " + encoding;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.FenixEduAcademicConfiguration.ConfigurationProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.