public class ApplicationServerOptions extends Object
SecurityTestRule.| Modifier and Type | Method and Description |
|---|---|
static ApplicationServerOptions |
forService(Service service)
Creates an instance of ApplicationServerOptions.
|
static ApplicationServerOptions |
forXsuaaService(String appId,
String clientId)
Creates an instance of ApplicationServerOptions.
|
int |
getPort() |
TokenAuthenticator |
getTokenAuthenticator() |
ApplicationServerOptions |
usePort(int port)
Use this method to configure a custom port on which the application server
will listen to.
|
ApplicationServerOptions |
useTokenAuthenticator(TokenAuthenticator tokenAuthenticator)
Use this method to configure a custom
TokenAuthenticator that will be
used in the application server to authenticate the user via tokens retrieved
in the authorization header. |
public static ApplicationServerOptions forXsuaaService(String appId, String clientId)
appId - the xsuaa application name e.g. myapp!t123.clientId - the xsuaa client id of the applicationpublic static ApplicationServerOptions forService(Service service)
service - the identity servicepublic ApplicationServerOptions useTokenAuthenticator(TokenAuthenticator tokenAuthenticator)
TokenAuthenticator that will be
used in the application server to authenticate the user via tokens retrieved
in the authorization header.tokenAuthenticator - the custom TokenAuthenticator.public ApplicationServerOptions usePort(int port)
port - the custom port.public TokenAuthenticator getTokenAuthenticator()
public int getPort()
Copyright © 2020. All rights reserved.