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

io.milton.sso.SimpleSsoSessionProvider Maven / Gradle / Ivy

Go to download

Milton Enterprise: Supports DAV level 2 and above, including Caldav and Carddav. Available on AGPL or commercial licenses

There is a newer version: 4.0.5.2400
Show newest version
/*
 * Copyright 2012 McEvoy Software Ltd.
 *
 * 
 */
package io.milton.sso;

/**
 * Just for testing and debugging, this uses a constant string as the "session
 * id"
 *
 * @author brad
 */
public class SimpleSsoSessionProvider implements SsoSessionProvider {

    private String prefix;

    @Override
    public Object getUserTag(String firstComp) {
        if (firstComp != null && firstComp.equals(prefix)) {
            return "aUser";
        } else {
            return null;
        }
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy