com.atlassian.applinks.host.spi
Class AbstractInternalHostApplication

java.lang.Object
  extended by com.atlassian.applinks.host.spi.AbstractInternalHostApplication
All Implemented Interfaces:
HostApplication, InternalHostApplication

public abstract class AbstractInternalHostApplication
extends java.lang.Object
implements InternalHostApplication

Inherit from this base class when you implement InternalHostApplication. This base class provides implementations for getSupportedOutboundAuthenticationTypes and getSupportedInboundAuthenticationTypes. It queries the plugin system for enabled AuthenticationProviderPluginModule to detect supported outbound authentication types and for enabled SupportedInboundAuthenticationModuleDescriptor to detect inbound authentication types.

Since:
3.0

Field Summary
protected  com.atlassian.plugin.PluginAccessor pluginAccessor
           
 
Constructor Summary
protected AbstractInternalHostApplication(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 java.lang.Iterable<java.lang.Class<? extends AuthenticationProvider>> getSupportedInboundAuthenticationTypes()
           
 java.lang.Iterable<java.lang.Class<? extends AuthenticationProvider>> getSupportedOutboundAuthenticationTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.applinks.host.spi.InternalHostApplication
canManageEntityLinksFor, doesEntityExist, getDocumentationBaseUrl, getLocalEntities, getName, getType, hasPublicSignup, toEntityReference, toEntityReference
 
Methods inherited from interface com.atlassian.applinks.host.spi.HostApplication
getBaseUrl, getId
 

Field Detail

pluginAccessor

protected final com.atlassian.plugin.PluginAccessor pluginAccessor
Constructor Detail

AbstractInternalHostApplication

protected AbstractInternalHostApplication(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getSupportedInboundAuthenticationTypes

public java.lang.Iterable<java.lang.Class<? extends AuthenticationProvider>> getSupportedInboundAuthenticationTypes()
Specified by:
getSupportedInboundAuthenticationTypes in interface InternalHostApplication
Returns:
an Iterable of AuthenticationProvider classes enumerating the inbound authentication methods supported by this application (used to authenticate requests made to this application instance).

getSupportedOutboundAuthenticationTypes

public java.lang.Iterable<java.lang.Class<? extends AuthenticationProvider>> getSupportedOutboundAuthenticationTypes()
Specified by:
getSupportedOutboundAuthenticationTypes in interface InternalHostApplication
Returns:
an Iterable of AuthenticationProvider classes enumerating the outbound authentication methods supported by this application (used to authenticate requests made by this application instance to remote applications).


Copyright © 2011 Atlassian. All Rights Reserved.