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

me.vertretungsplan.objects.authentication.AuthenticationData Maven / Gradle / Ivy

Go to download

Java library for parsing schools' substitution schedules. Supports multiple different systems mainly used in the German-speaking countries.

There is a newer version: 1.0.0-beta356
Show newest version
/*
 * substitution-schedule-parser - Java library for parsing schools' substitution schedules
 * Copyright (c) 2016 Johan v. Forstner
 *
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
 * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package me.vertretungsplan.objects.authentication;

import me.vertretungsplan.objects.credential.Credential;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * An AuthenticationData is used in
 * {@link me.vertretungsplan.objects.SubstitutionScheduleData#setAuthenticationData(AuthenticationData)} to specify
 * what type of credential is needed to access the schedule. If the schedule requires no authentication, use
 * {@link NoAuthenticationData}.
 */
public interface AuthenticationData {
    /**
     * @return The type of credential needed to access the schedule.
     */
    Class getCredentialType();
    JSONObject getData() throws JSONException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy