Interface InitContext
-
- All Known Implementing Classes:
ServletInitContext
public interface InitContext
Context for the initialisation of SPI implementations.Provides:
- Access to the web application context.
- A method to retrieve a configuration or another file in the web application package.
- Access to the Infinispan cache manager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.infinispan.manager.EmbeddedCacheManagergetInfinispanCacheManager()Returns the Infinispan cache manager.com.nimbusds.oauth2.sdk.id.IssuergetIssuer()Deprecated.com.nimbusds.oauth2.sdk.id.IssuergetOPIssuer()Deprecated.InputStreamgetResourceAsStream(String path)Returns the resource located at the named path as an input stream.ServiceContextgetServiceContext()Deprecated.javax.servlet.ServletContextgetServletContext()Returns the servlet context.URIgetTokenEndpointURI()Deprecated.
-
-
-
Method Detail
-
getServletContext
javax.servlet.ServletContext getServletContext()
Returns the servlet context.- Returns:
- The servlet context.
-
getResourceAsStream
InputStream getResourceAsStream(String path)
Returns the resource located at the named path as an input stream. Has the same behaviour asServletContext.getResourceAsStream(java.lang.String).- Parameters:
path- The path to the resource, must be begin with a '/' and is interpreted as relative to the web application root. Must not benull.- Returns:
- The resource as an input stream, or
nullif no resource exists at the specified path.
-
getInfinispanCacheManager
org.infinispan.manager.EmbeddedCacheManager getInfinispanCacheManager()
Returns the Infinispan cache manager.- Returns:
- The Infinispan cache manager.
-
getIssuer
@Deprecated com.nimbusds.oauth2.sdk.id.Issuer getIssuer()
Deprecated.Returns the OpenID Provider / Authorisation Server issuer URL. May be used to set the accepted audience values for SAML 2.0 or JWT bearer grant handlers.Use
InvocationContext.getIssuer()instead.- Returns:
- The OpenID Provider / Authorisation Server issuer,
nullif not available (for a multi-tenant Connect2id server).
-
getOPIssuer
@Deprecated com.nimbusds.oauth2.sdk.id.Issuer getOPIssuer()
Deprecated.Returns the OpenID Provider / Authorisation Server issuer URL. May be used to set the accepted audience values for SAML 2.0 or JWT bearer grant handlers.Use
InvocationContext.getIssuer()instead.- Returns:
- The OpenID Provider / Authorisation Server issuer,
nullif not available (for a multi-tenant Connect2id server).
-
getTokenEndpointURI
@Deprecated URI getTokenEndpointURI()
Deprecated.Returns the token endpoint of the OpenID Provider / Authorisation Server. May be used to set the accepted audience values for SAML 2.0 or JWT bearer grant handlers.- Returns:
- The token endpoint URI,
nullif not available (for a multi-tenant Connect2id server).
-
getServiceContext
@Deprecated ServiceContext getServiceContext()
Deprecated.Returns a service context for accessing selected Connect2id server components that may be required in order to process claims or grant handler requests. The service context is only available during SPI request processing. Attempting to use it during SPIininitialisationwill produce anIllegalStateException.Use
InvocationContextinstead.- Returns:
- The service context.
-
-