001package de.deepamehta.accesscontrol;
002
003import de.deepamehta.core.Topic;
004import de.deepamehta.core.service.accesscontrol.Credentials;
005
006
007
008public interface AuthorizationMethod {
009
010    /**
011     * Checks if the given credentials are valid.
012     *
013     * @return  the corresponding Username topic if the credentials are valid, or <code>null</code> otherwise.
014     */
015    Topic checkCredentials(Credentials cred);
016}