test_class.declarator: COOKIE_PREFIX = "RestxSession"
test_class.modifier: private static final
test_class.original_string: private static final String COOKIE_PREFIX = "RestxSession";
test_class.type: String
test_class.var_name: COOKIE_PREFIX
test_class.declarator: COOKIE_SIGNATURE_PREFIX = "RestxSessionSignature"
test_class.modifier: private static final
test_class.original_string: private static final String COOKIE_SIGNATURE_PREFIX = "RestxSessionSignature";
test_class.type: String
test_class.var_name: COOKIE_SIGNATURE_PREFIX
test_class.declarator: appName
test_class.modifier: private final
test_class.original_string: private final String appName;
test_class.type: String
test_class.var_name: appName
test_class.declarator: expectedCookieName
test_class.modifier: private final
test_class.original_string: private final String expectedCookieName;
test_class.type: String
test_class.var_name: expectedCookieName
test_class.declarator: expectedCookieSignatureName
test_class.modifier: private final
test_class.original_string: private final String expectedCookieSignatureName;
test_class.type: String
test_class.var_name: expectedCookieSignatureName
test_class.file: restx-core/src/test/java/restx/security/SecurityFactoryTest.java
test_class.identifier: SecurityFactoryTest
test_case.body: @Test
      public void should_app_named_dependent_cookie_be_correctly_generated(){
          RestxSessionCookieDescriptor cookieDescriptor = new SecurityFactory().restxSessionCookieDescriptor(Optional.fromNullable(this.appName));
          assertThat(cookieDescriptor.getCookieName(), is(equalTo(this.expectedCookieName)));
          assertThat(cookieDescriptor.getCookieSignatureName(), is(equalTo(this.expectedCookieSignatureName)));
      }
test_case.class_method_signature: SecurityFactoryTest.should_app_named_dependent_cookie_be_correctly_generated()
test_case.full_signature: @Test public void should_app_named_dependent_cookie_be_correctly_generated()
test_case.identifier: should_app_named_dependent_cookie_be_correctly_generated
test_case.invocations: restxSessionCookieDescriptor fromNullable assertThat getCookieName is equalTo assertThat getCookieSignatureName is equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_app_named_dependent_cookie_be_correctly_generated()
focal_class.file: restx-core/src/main/java/restx/security/SecurityFactory.java
focal_class.identifier: SecurityFactory
focal_class.class_method_signature: SecurityFactory.restxSessionCookieDescriptor(@Named("app.name") Optional<String> appName)
focal_class.full_signature: @Provides public RestxSessionCookieDescriptor restxSessionCookieDescriptor(@Named("app.name") Optional<String> appName)
focal_class.identifier: restxSessionCookieDescriptor
focal_class.modifiers: @Provides public
focal_class.parameters: (@Named("app.name") Optional<String> appName)
focal_class.return: RestxSessionCookieDescriptor
focal_class.signature: RestxSessionCookieDescriptor restxSessionCookieDescriptor(@Named("app.name") Optional<String> appName)
focal_method.body: @Provides
      public RestxSessionCookieDescriptor restxSessionCookieDescriptor(@Named("app.name") Optional<String> appName){
          if(appName.isPresent()){
              return new RestxSessionCookieDescriptor(
                      String.format("%s-%s", "RestxSession", appName.get()),
                      String.format("%s-%s", "RestxSessionSignature", appName.get()));
          } else {
              // Keeping backward compatibility when appName is not provided
              return new RestxSessionCookieDescriptor("RestxSession", "RestxSessionSignature");
          }
      }
focal_method.class_method_signature: SecurityFactory.restxSessionCookieDescriptor(@Named("app.name") Optional<String> appName)
focal_method.full_signature: @Provides public RestxSessionCookieDescriptor restxSessionCookieDescriptor(@Named("app.name") Optional<String> appName)
focal_method.identifier: restxSessionCookieDescriptor
focal_method.invocations: isPresent format get format get
focal_method.modifiers: @Provides public
focal_method.parameters: (@Named("app.name") Optional<String> appName)
focal_method.return: RestxSessionCookieDescriptor
focal_method.signature: RestxSessionCookieDescriptor restxSessionCookieDescriptor(@Named("app.name") Optional<String> appName)