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

A

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.SecurityTestRule
Adds a filter to the servlet server.
after() - Method in class com.sap.cloud.security.test.SecurityTestRule
 
ApplicationServerOptions - Class in com.sap.cloud.security.test
This class is used to configure the application server to serve test servlets inside the SecurityTestRule.

B

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

C

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.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.SecurityTestRule
 
DEFAULT_CLIENT_ID - Static variable in class com.sap.cloud.security.test.SecurityTestRule
 
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.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.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
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
 
JwtGenerator - Class in com.sap.cloud.security.test
Jwt Token builder class to generate tokes for testing purposes.

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.

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
 
SecurityTestRule - Class in com.sap.cloud.security.test
 
setConfiguration(Authenticator.AuthConfiguration) - Method in class com.sap.cloud.security.test.jetty.JettyTokenAuthenticator
 
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.SecurityTestRule
Overwrites the port on which the identity service mock server runs (WireMock).

U

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

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.
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 L N P R S U V W 
Skip navigation links

Copyright © 2020. All rights reserved.