test_class.file: adapters/oidc/adapter-core/src/test/java/org/keycloak/adapters/RefreshableKeycloakSecurityContextTest.java
test_class.identifier: RefreshableKeycloakSecurityContextTest
test_case.body: @Test
  	public void sameIssuedAtAsNotBeforeIsActiveKEYCLOAK10013() {
  		KeycloakDeployment keycloakDeployment = new KeycloakDeployment();
  		keycloakDeployment.setNotBefore(5000);
  
  		TokenMetadataRepresentation token = new TokenMetadataRepresentation();
  		token.setActive(true);
  		token.issuedAt(4999);
  
  		RefreshableKeycloakSecurityContext sut = new RefreshableKeycloakSecurityContext(keycloakDeployment,null,null,token,null, null, null);
  
  		assertFalse(sut.isActive());
  
  		token.issuedAt(5000);
  		assertTrue(sut.isActive());
  	}
test_case.class_method_signature: RefreshableKeycloakSecurityContextTest.sameIssuedAtAsNotBeforeIsActiveKEYCLOAK10013()
test_case.full_signature: @Test public void sameIssuedAtAsNotBeforeIsActiveKEYCLOAK10013()
test_case.identifier: sameIssuedAtAsNotBeforeIsActiveKEYCLOAK10013
test_case.invocations: setNotBefore setActive issuedAt assertFalse isActive issuedAt assertTrue isActive
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void sameIssuedAtAsNotBeforeIsActiveKEYCLOAK10013()
focal_class.declarator: log = Logger.getLogger(RefreshableKeycloakSecurityContext.class)
focal_class.modifier: protected static
focal_class.original_string: protected static Logger log = Logger.getLogger(RefreshableKeycloakSecurityContext.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: deployment
focal_class.modifier: protected transient
focal_class.original_string: protected transient KeycloakDeployment deployment;
focal_class.type: KeycloakDeployment
focal_class.var_name: deployment
focal_class.declarator: tokenStore
focal_class.modifier: protected transient
focal_class.original_string: protected transient AdapterTokenStore tokenStore;
focal_class.type: AdapterTokenStore
focal_class.var_name: tokenStore
focal_class.declarator: refreshToken
focal_class.modifier: protected
focal_class.original_string: protected String refreshToken;
focal_class.type: String
focal_class.var_name: refreshToken
focal_class.file: adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/RefreshableKeycloakSecurityContext.java
focal_class.identifier: RefreshableKeycloakSecurityContext
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.RefreshableKeycloakSecurityContext()
focal_class.full_signature: public  RefreshableKeycloakSecurityContext()
focal_class.identifier: RefreshableKeycloakSecurityContext
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RefreshableKeycloakSecurityContext()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.RefreshableKeycloakSecurityContext(KeycloakDeployment deployment, AdapterTokenStore tokenStore, String tokenString, AccessToken token, String idTokenString, IDToken idToken, String refreshToken)
focal_class.full_signature: public  RefreshableKeycloakSecurityContext(KeycloakDeployment deployment, AdapterTokenStore tokenStore, String tokenString, AccessToken token, String idTokenString, IDToken idToken, String refreshToken)
focal_class.identifier: RefreshableKeycloakSecurityContext
focal_class.modifiers: public
focal_class.parameters: (KeycloakDeployment deployment, AdapterTokenStore tokenStore, String tokenString, AccessToken token, String idTokenString, IDToken idToken, String refreshToken)
focal_class.signature:  RefreshableKeycloakSecurityContext(KeycloakDeployment deployment, AdapterTokenStore tokenStore, String tokenString, AccessToken token, String idTokenString, IDToken idToken, String refreshToken)
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.getToken()
focal_class.full_signature: @Override public AccessToken getToken()
focal_class.identifier: getToken
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AccessToken
focal_class.signature: AccessToken getToken()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.getTokenString()
focal_class.full_signature: @Override public String getTokenString()
focal_class.identifier: getTokenString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTokenString()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.getIdToken()
focal_class.full_signature: @Override public IDToken getIdToken()
focal_class.identifier: getIdToken
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: IDToken
focal_class.signature: IDToken getIdToken()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.getIdTokenString()
focal_class.full_signature: @Override public String getIdTokenString()
focal_class.identifier: getIdTokenString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getIdTokenString()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.getRefreshToken()
focal_class.full_signature: public String getRefreshToken()
focal_class.identifier: getRefreshToken
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRefreshToken()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.logout(KeycloakDeployment deployment)
focal_class.full_signature: public void logout(KeycloakDeployment deployment)
focal_class.identifier: logout
focal_class.modifiers: public
focal_class.parameters: (KeycloakDeployment deployment)
focal_class.return: void
focal_class.signature: void logout(KeycloakDeployment deployment)
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.isActive()
focal_class.full_signature: public boolean isActive()
focal_class.identifier: isActive
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isActive()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.isTokenTimeToLiveSufficient(AccessToken token)
focal_class.full_signature: public boolean isTokenTimeToLiveSufficient(AccessToken token)
focal_class.identifier: isTokenTimeToLiveSufficient
focal_class.modifiers: public
focal_class.parameters: (AccessToken token)
focal_class.return: boolean
focal_class.signature: boolean isTokenTimeToLiveSufficient(AccessToken token)
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.getDeployment()
focal_class.full_signature: public KeycloakDeployment getDeployment()
focal_class.identifier: getDeployment
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: KeycloakDeployment
focal_class.signature: KeycloakDeployment getDeployment()
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.setCurrentRequestInfo(KeycloakDeployment deployment, AdapterTokenStore tokenStore)
focal_class.full_signature: public void setCurrentRequestInfo(KeycloakDeployment deployment, AdapterTokenStore tokenStore)
focal_class.identifier: setCurrentRequestInfo
focal_class.modifiers: public
focal_class.parameters: (KeycloakDeployment deployment, AdapterTokenStore tokenStore)
focal_class.return: void
focal_class.signature: void setCurrentRequestInfo(KeycloakDeployment deployment, AdapterTokenStore tokenStore)
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.refreshExpiredToken(boolean checkActive)
focal_class.full_signature: public boolean refreshExpiredToken(boolean checkActive)
focal_class.identifier: refreshExpiredToken
focal_class.modifiers: public
focal_class.parameters: (boolean checkActive)
focal_class.return: boolean
focal_class.signature: boolean refreshExpiredToken(boolean checkActive)
focal_class.class_method_signature: RefreshableKeycloakSecurityContext.setAuthorizationContext(AuthorizationContext authorizationContext)
focal_class.full_signature: public void setAuthorizationContext(AuthorizationContext authorizationContext)
focal_class.identifier: setAuthorizationContext
focal_class.modifiers: public
focal_class.parameters: (AuthorizationContext authorizationContext)
focal_class.return: void
focal_class.signature: void setAuthorizationContext(AuthorizationContext authorizationContext)
focal_class.superclass: extends KeycloakSecurityContext
focal_method.body: public boolean isActive() {
          return token != null && this.token.isActive() && deployment!=null && this.token.getIssuedAt() >= deployment.getNotBefore();
      }
focal_method.class_method_signature: RefreshableKeycloakSecurityContext.isActive()
focal_method.full_signature: public boolean isActive()
focal_method.identifier: isActive
focal_method.invocations: isActive getIssuedAt getNotBefore
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isActive()