com.atlassian.sal.core.auth
Class SeraphLoginUriProvider

java.lang.Object
  extended by com.atlassian.sal.core.auth.SeraphLoginUriProvider
All Implemented Interfaces:
LoginUriProvider

public class SeraphLoginUriProvider
extends Object
implements LoginUriProvider

Since:
2.0.2

Constructor Summary
SeraphLoginUriProvider(ApplicationProperties applicationProperties)
           
 
Method Summary
 URI getLoginUri(URI returnUri)
          Returns the URI to redirect users for login.
 URI getLoginUri(URI returnUri, EnumSet<PageCapability> pageCaps)
          Returns the URI to redirect users for login.
 URI getLoginUriForRole(URI returnUri, UserRole role)
          Returns the URI to redirect users for login.
 URI getLoginUriForRole(URI returnUri, UserRole role, EnumSet<PageCapability> pageCaps)
          Returns the URI to redirect users for login.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeraphLoginUriProvider

public SeraphLoginUriProvider(ApplicationProperties applicationProperties)
Method Detail

getLoginUri

public URI getLoginUri(URI returnUri)
Description copied from interface: LoginUriProvider
Returns the URI to redirect users for login. It must append the returnUri so that once login is complete, the user will be redirected back to the original page.

Specified by:
getLoginUri in interface LoginUriProvider
Parameters:
returnUri - URI of the page the application should redirect the user to after login is complete
Returns:
the URI to redirect users for login

getLoginUri

public URI getLoginUri(URI returnUri,
                       EnumSet<PageCapability> pageCaps)
Description copied from interface: LoginUriProvider
Returns the URI to redirect users for login. It must append the returnUri so that once login is complete, the user will be redirected back to the original page.

Specified by:
getLoginUri in interface LoginUriProvider
Parameters:
returnUri - URI of the page the application should redirect the user to after login is complete
pageCaps - PageCapability for product to supply in login page.
Returns:
the URI to redirect users for login

getLoginUriForRole

public URI getLoginUriForRole(URI returnUri,
                              UserRole role)
Description copied from interface: LoginUriProvider
Returns the URI to redirect users for login. It must append the returnUri so that once login is complete, the user will be redirected back to the original page. Page is expected to redirect back to URI only if u

Specified by:
getLoginUriForRole in interface LoginUriProvider
Parameters:
returnUri - URI of the page the application should redirect the user to after login is complete
role - UserRole of user
Returns:
the URI to redirect users for login

getLoginUriForRole

public URI getLoginUriForRole(URI returnUri,
                              UserRole role,
                              EnumSet<PageCapability> pageCaps)
Description copied from interface: LoginUriProvider
Returns the URI to redirect users for login. It must append the returnUri so that once login is complete, the user will be redirected back to the original page. Page is expected to redirect back to URI only if u This page is supposed to match requested PageCapability

Specified by:
getLoginUriForRole in interface LoginUriProvider
Parameters:
returnUri - URI of the page the application should redirect the user to after login is complete
role - UserRole of user
pageCaps - PageCapability for product to supply in login page.
Returns:
the URI to redirect users for login


Copyright © 2015 Atlassian. All rights reserved.