com.atlassian.seraph.config
Class DefaultLoginUrlStrategy

java.lang.Object
  extended by com.atlassian.seraph.config.DefaultLoginUrlStrategy
All Implemented Interfaces:
LoginUrlStrategy, Initable

public class DefaultLoginUrlStrategy
extends Object
implements LoginUrlStrategy

Login URL strategy that just returns the originally configured values.


Constructor Summary
DefaultLoginUrlStrategy()
           
 
Method Summary
 String getLinkLoginURL(SecurityConfig config, String configuredLinkLoginUrl)
           
 String getLoginURL(SecurityConfig config, String configuredLoginUrl)
           
 String getLogoutURL(SecurityConfig config, String configuredLogoutUrl)
           
 void init(Map<String,String> params, SecurityConfig config)
          Initialise the configuration object with the given "init-params".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLoginUrlStrategy

public DefaultLoginUrlStrategy()
Method Detail

init

public void init(Map<String,String> params,
                 SecurityConfig config)
Description copied from interface: Initable
Initialise the configuration object with the given "init-params".

Specified by:
init in interface Initable
Parameters:
params - The map of "init-params" extracted from the Seraph config file. This is guaranteed not null.
config - The Seraph SecurityConfig class that is initialising the config objects. This object will only be partially initialised at this time.

getLoginURL

public String getLoginURL(SecurityConfig config,
                          String configuredLoginUrl)
Specified by:
getLoginURL in interface LoginUrlStrategy

getLogoutURL

public String getLogoutURL(SecurityConfig config,
                           String configuredLogoutUrl)
Specified by:
getLogoutURL in interface LoginUrlStrategy

getLinkLoginURL

public String getLinkLoginURL(SecurityConfig config,
                              String configuredLinkLoginUrl)
Specified by:
getLinkLoginURL in interface LoginUrlStrategy


Copyright © 2013 Atlassian. All Rights Reserved.