Skip navigation links
A B C D F G J K L N P R S T U V W 

A

addApplicationServlet(Class<? extends Servlet>, String) - Method in class com.sap.cloud.security.test.SecurityTest
Adds a servlet to the servlet server.
addApplicationServlet(ServletHolder, String) - Method in class com.sap.cloud.security.test.SecurityTest
Adds a servlet to the servlet server.
addApplicationServlet(Class<? extends Servlet>, String) - Method in class com.sap.cloud.security.test.SecurityTestRule
Adds a servlet to the servlet server.
addApplicationServlet(ServletHolder, String) - Method in class com.sap.cloud.security.test.SecurityTestRule
Adds a servlet to the servlet server.
addApplicationServletFilter(Class<? extends Filter>) - Method in class com.sap.cloud.security.test.SecurityTest
Adds a filter to the servlet server.
addApplicationServletFilter(Class<? extends Filter>) - Method in class com.sap.cloud.security.test.SecurityTestRule
Adds a filter to the servlet server.
after() - Method in class com.sap.cloud.security.test.SecurityTestRule
 
applicationServer - Variable in class com.sap.cloud.security.test.SecurityTest
 
ApplicationServerOptions - Class in com.sap.cloud.security.test
This class is used to configure the application server to serve test servlets inside the SecurityTestRule.
applicationServerOptions - Variable in class com.sap.cloud.security.test.SecurityTest
 
applicationServletFilters - Variable in class com.sap.cloud.security.test.SecurityTest
 
applicationServletsByPath - Variable in class com.sap.cloud.security.test.SecurityTest
 

B

before() - Method in class com.sap.cloud.security.test.SecurityTestRule
 

C

clientId - Variable in class com.sap.cloud.security.test.SecurityTest
 
com.sap.cloud.security.test - package com.sap.cloud.security.test
 
com.sap.cloud.security.test.jetty - package com.sap.cloud.security.test.jetty
 
createToken() - Method in class com.sap.cloud.security.test.JwtGenerator
Builds and signs the token using the the algorithm set via JwtGenerator.withSignatureAlgorithm(JwtSignatureAlgorithm) and the given key.
createToken() - Method in class com.sap.cloud.security.test.SecurityTest
Creates a very basic token on base of the preconfigured Jwt token generator.
createToken() - Method in class com.sap.cloud.security.test.SecurityTestRule
Creates a very basic token on base of the preconfigured Jwt token generator.

D

DEFAULT_APP_ID - Static variable in class com.sap.cloud.security.test.SecurityTest
 
DEFAULT_APP_ID - Static variable in class com.sap.cloud.security.test.SecurityTestRule
 
DEFAULT_CLIENT_ID - Static variable in class com.sap.cloud.security.test.SecurityTest
 
DEFAULT_CLIENT_ID - Static variable in class com.sap.cloud.security.test.SecurityTestRule
 
DEFAULT_DOMAIN - Static variable in class com.sap.cloud.security.test.SecurityTest
 
DEFAULT_DOMAIN - Static variable in class com.sap.cloud.security.test.SecurityTestRule
 

F

forService(Service) - Static method in class com.sap.cloud.security.test.ApplicationServerOptions
Creates an instance of ApplicationServerOptions.
forXsuaaService(String, String) - Static method in class com.sap.cloud.security.test.ApplicationServerOptions
Creates an instance of ApplicationServerOptions.
fromKeyFiles(String, String) - Static method in class com.sap.cloud.security.test.RSAKeys
Creates an instance with the given key pair.

G

generate() - Static method in class com.sap.cloud.security.test.RSAKeys
Generates a random RSA keypair.
getApplicationServerUri() - Method in class com.sap.cloud.security.test.SecurityTest
Returns the URI of the embedded jetty server or null if not specified.
getApplicationServerUri() - Method in class com.sap.cloud.security.test.SecurityTestRule
Returns the URI of the embedded jetty server or null if not specified.
getAuthMethod() - Method in class com.sap.cloud.security.test.jetty.JettyTokenAuthenticator
 
getInstance(Service, String) - Static method in class com.sap.cloud.security.test.JwtGenerator
 
getInstance(Service) - Static method in class com.sap.cloud.security.test.SecurityTestRule
Creates an instance of the test rule for the given service.
getPort() - Method in class com.sap.cloud.security.test.ApplicationServerOptions
 
getPreconfiguredJwtGenerator() - Method in class com.sap.cloud.security.test.SecurityTest
Note: the JwtGenerator is fully configured as part of SecurityTest.setup() method.
getPreconfiguredJwtGenerator() - Method in class com.sap.cloud.security.test.SecurityTestRule
Note: the JwtGenerator is fully configured as part of SecurityTestRule.before() method.
getPrivate() - Method in class com.sap.cloud.security.test.RSAKeys
 
getPublic() - Method in class com.sap.cloud.security.test.RSAKeys
 
getTokenAuthenticator() - Method in class com.sap.cloud.security.test.ApplicationServerOptions
 
getWireMockRule() - Method in class com.sap.cloud.security.test.SecurityTestRule
Deprecated.
use SecurityTestRule.getWireMockServer() method instead. Note that WireMockServer is the base class of WireMockRule.
getWireMockServer() - Method in class com.sap.cloud.security.test.SecurityTest
Allows to stub further endpoints of the identity service.
getWireMockServer() - Method in class com.sap.cloud.security.test.SecurityTestRule
Allows to stub further endpoints of the identity service.

J

JettyTokenAuthenticator - Class in com.sap.cloud.security.test.jetty
Decorates the TokenAuthenticator and adapts it to Jetty.
JettyTokenAuthenticator(TokenAuthenticator) - Constructor for class com.sap.cloud.security.test.jetty.JettyTokenAuthenticator
 
jwksUrl - Variable in class com.sap.cloud.security.test.SecurityTest
 
JwtGenerator - Class in com.sap.cloud.security.test
Jwt Token builder class to generate tokes for testing purposes.

K

keys - Variable in class com.sap.cloud.security.test.SecurityTest
 

L

loadPrivateKey(String) - Static method in class com.sap.cloud.security.test.RSAKeys
Loads the private key from the given file.
loadPublicKey(String) - Static method in class com.sap.cloud.security.test.RSAKeys
Loads the public key from the given file.
LOCALHOST_PATTERN - Static variable in class com.sap.cloud.security.test.SecurityTest
 
LOGGER - Static variable in class com.sap.cloud.security.test.SecurityTest
 

N

NO_EXPIRE_DATE - Static variable in class com.sap.cloud.security.test.JwtGenerator
 

P

prepareRequest(ServletRequest) - Method in class com.sap.cloud.security.test.jetty.JettyTokenAuthenticator
 

R

RSAKeys - Class in com.sap.cloud.security.test
Utility class to create RSAKeys used for testing.

S

secureResponse(ServletRequest, ServletResponse, boolean, Authentication.User) - Method in class com.sap.cloud.security.test.jetty.JettyTokenAuthenticator
 
SecurityTest - Class in com.sap.cloud.security.test
 
SecurityTest(Service) - Constructor for class com.sap.cloud.security.test.SecurityTest
 
SecurityTestRule - Class in com.sap.cloud.security.test
 
service - Variable in class com.sap.cloud.security.test.SecurityTest
 
setConfiguration(Authenticator.AuthConfiguration) - Method in class com.sap.cloud.security.test.jetty.JettyTokenAuthenticator
 
setKeys(String, String) - Method in class com.sap.cloud.security.test.SecurityTest
Overwrites the private/public key pair to be used.
setKeys(String, String) - Method in class com.sap.cloud.security.test.SecurityTestRule
Overwrites the private/public key pair to be used.
setPort(int) - Method in class com.sap.cloud.security.test.SecurityTest
Overwrites the port on which the identity service mock server runs (WireMock).
setPort(int) - Method in class com.sap.cloud.security.test.SecurityTestRule
Overwrites the port on which the identity service mock server runs (WireMock).
setup() - Method in class com.sap.cloud.security.test.SecurityTest
Starts the Jetty application web server and the WireMock OAuthServer if not running.

T

tearDown() - Method in class com.sap.cloud.security.test.SecurityTest
Shuts down Jetty application web server and WireMock stub.

U

useApplicationServer - Variable in class com.sap.cloud.security.test.SecurityTest
 
useApplicationServer() - Method in class com.sap.cloud.security.test.SecurityTest
Specifies an embedded jetty as servlet server.
useApplicationServer(ApplicationServerOptions) - Method in class com.sap.cloud.security.test.SecurityTest
Specifies an embedded jetty as servlet server.
useApplicationServer() - Method in class com.sap.cloud.security.test.SecurityTestRule
Specifies an embedded jetty as servlet server.
useApplicationServer(ApplicationServerOptions) - Method in class com.sap.cloud.security.test.SecurityTestRule
Specifies an embedded jetty as servlet server.
usePort(int) - Method in class com.sap.cloud.security.test.ApplicationServerOptions
Use this method to configure a custom port on which the application server will listen to.
useTokenAuthenticator(TokenAuthenticator) - Method in class com.sap.cloud.security.test.ApplicationServerOptions
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.

V

validateRequest(ServletRequest, ServletResponse, boolean) - Method in class com.sap.cloud.security.test.jetty.JettyTokenAuthenticator
 

W

wireMockServer - Variable in class com.sap.cloud.security.test.SecurityTest
 
withAppId(String) - Method in class com.sap.cloud.security.test.JwtGenerator
This method does not actually set data on the token itself but sets the appId that is used by JwtGenerator.withLocalScopes(String...) to create the local scopes.
withClaimsFromFile(String) - Method in class com.sap.cloud.security.test.JwtGenerator
This method will fill the token with all the claims that are defined inside the given file.
withClaimValue(String, String) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the claim with the given name to the given string value.
withClaimValue(String, JsonObject) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the claim with the given name to the given string value.
withClaimValues(String, String...) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the claim with the given name to the given string values.
withExpiration(Instant) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the expiration claim (exp) of the token to the given moment in time.
withHeaderParameter(String, String) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the header parameter with the given name to the given string value.
withLocalScopes(String...) - Method in class com.sap.cloud.security.test.JwtGenerator
Works like JwtGenerator.withScopes(String...)} but prefixes the scopes with "appId.".
withPrivateKey(PrivateKey) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the private key that is used to sign the token.
withScopes(String...) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the roles as claim "scope" to the jwt.
withSignatureAlgorithm(JwtSignatureAlgorithm) - Method in class com.sap.cloud.security.test.JwtGenerator
Sets the signature algorithm that is used to create the signature of the token.
A B C D F G J K L N P R S T U V W 
Skip navigation links

Copyright © 2020. All rights reserved.