io.milton.sso.SimpleSsoSessionProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milton-server-ent Show documentation
Show all versions of milton-server-ent Show documentation
Milton Enterprise: Supports DAV level 2 and above, including Caldav and Carddav. Available on AGPL or
commercial licenses
The 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