001package systems.dmx.accesscontrol;
002
003import systems.dmx.core.Topic;
004import systems.dmx.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}