id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
127,200 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createInitialAuthenticationRequestValidationCheckAction | protected void createInitialAuthenticationRequestValidationCheckAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_INITIAL_AUTHN_REQUEST_VALIDATION_CHECK,
CasWebflowConstants.ACTION_ID_INITIAL_AUTHN_REQUEST_VALIDATION);
createTransitionForState(action... | java | protected void createInitialAuthenticationRequestValidationCheckAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_INITIAL_AUTHN_REQUEST_VALIDATION_CHECK,
CasWebflowConstants.ACTION_ID_INITIAL_AUTHN_REQUEST_VALIDATION);
createTransitionForState(action... | [
"protected",
"void",
"createInitialAuthenticationRequestValidationCheckAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"action",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_INITIAL_AUTHN_REQUEST_VALIDATION_CHECK",
",",
"CasWebflow... | Create initial authentication request validation check action.
@param flow the flow | [
"Create",
"initial",
"authentication",
"request",
"validation",
"check",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L204-L211 |
127,201 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createTerminateSessionAction | protected void createTerminateSessionAction(final Flow flow) {
val terminateSession = createActionState(flow,
CasWebflowConstants.STATE_ID_TERMINATE_SESSION, createEvaluateAction(CasWebflowConstants.ACTION_ID_TERMINATE_SESSION));
createStateDefaultTransition(terminateSession, CasWebflowConst... | java | protected void createTerminateSessionAction(final Flow flow) {
val terminateSession = createActionState(flow,
CasWebflowConstants.STATE_ID_TERMINATE_SESSION, createEvaluateAction(CasWebflowConstants.ACTION_ID_TERMINATE_SESSION));
createStateDefaultTransition(terminateSession, CasWebflowConst... | [
"protected",
"void",
"createTerminateSessionAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"terminateSession",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_TERMINATE_SESSION",
",",
"createEvaluateAction",
"(",
"CasWebflowConst... | Create terminate session action.
@param flow the flow | [
"Create",
"terminate",
"session",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L218-L222 |
127,202 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createSendTicketGrantingTicketAction | protected void createSendTicketGrantingTicketAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET,
CasWebflowConstants.ACTION_ID_SEND_TICKET_GRANTING_TICKET);
createTransitionForState(action, CasWebflowConstants.TRANSITION_ID... | java | protected void createSendTicketGrantingTicketAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET,
CasWebflowConstants.ACTION_ID_SEND_TICKET_GRANTING_TICKET);
createTransitionForState(action, CasWebflowConstants.TRANSITION_ID... | [
"protected",
"void",
"createSendTicketGrantingTicketAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"action",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_SEND_TICKET_GRANTING_TICKET",
",",
"CasWebflowConstants",
".",
"ACTION_I... | Create send ticket granting ticket action.
@param flow the flow | [
"Create",
"send",
"ticket",
"granting",
"ticket",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L229-L234 |
127,203 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createCreateTicketGrantingTicketAction | protected void createCreateTicketGrantingTicketAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_CREATE_TICKET_GRANTING_TICKET, CasWebflowConstants.ACTION_ID_CREATE_TICKET_GRANTING_TICKET);
createTransitionForState(action, CasWebflowConstants.TRANSITION_ID_SUCCE... | java | protected void createCreateTicketGrantingTicketAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_CREATE_TICKET_GRANTING_TICKET, CasWebflowConstants.ACTION_ID_CREATE_TICKET_GRANTING_TICKET);
createTransitionForState(action, CasWebflowConstants.TRANSITION_ID_SUCCE... | [
"protected",
"void",
"createCreateTicketGrantingTicketAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"action",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_CREATE_TICKET_GRANTING_TICKET",
",",
"CasWebflowConstants",
".",
"ACTI... | Create create ticket granting ticket action.
@param flow the flow | [
"Create",
"create",
"ticket",
"granting",
"ticket",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L241-L245 |
127,204 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createGenerateServiceTicketAction | protected void createGenerateServiceTicketAction(final Flow flow) {
val handler = createActionState(flow,
CasWebflowConstants.STATE_ID_GENERATE_SERVICE_TICKET,
createEvaluateAction(CasWebflowConstants.ACTION_ID_GENERATE_SERVICE_TICKET));
createTransitionForState(handler, CasWebfl... | java | protected void createGenerateServiceTicketAction(final Flow flow) {
val handler = createActionState(flow,
CasWebflowConstants.STATE_ID_GENERATE_SERVICE_TICKET,
createEvaluateAction(CasWebflowConstants.ACTION_ID_GENERATE_SERVICE_TICKET));
createTransitionForState(handler, CasWebfl... | [
"protected",
"void",
"createGenerateServiceTicketAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"handler",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_GENERATE_SERVICE_TICKET",
",",
"createEvaluateAction",
"(",
"CasWebflowCon... | Create generate service ticket action.
@param flow the flow | [
"Create",
"generate",
"service",
"ticket",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L252-L261 |
127,205 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createHandleAuthenticationFailureAction | protected void createHandleAuthenticationFailureAction(final Flow flow) {
val handler = createActionState(flow, CasWebflowConstants.STATE_ID_HANDLE_AUTHN_FAILURE,
CasWebflowConstants.ACTION_ID_AUTHENTICATION_EXCEPTION_HANDLER);
createTransitionForState(handler, AccountDisabledException.class... | java | protected void createHandleAuthenticationFailureAction(final Flow flow) {
val handler = createActionState(flow, CasWebflowConstants.STATE_ID_HANDLE_AUTHN_FAILURE,
CasWebflowConstants.ACTION_ID_AUTHENTICATION_EXCEPTION_HANDLER);
createTransitionForState(handler, AccountDisabledException.class... | [
"protected",
"void",
"createHandleAuthenticationFailureAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"handler",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_HANDLE_AUTHN_FAILURE",
",",
"CasWebflowConstants",
".",
"ACTION_ID_A... | Create handle authentication failure action.
@param flow the flow | [
"Create",
"handle",
"authentication",
"failure",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L268-L286 |
127,206 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createRedirectToServiceActionState | protected void createRedirectToServiceActionState(final Flow flow) {
val redirectToView = createActionState(flow, CasWebflowConstants.STATE_ID_REDIRECT, CasWebflowConstants.ACTION_ID_REDIRECT_TO_SERVICE);
createTransitionForState(redirectToView, Response.ResponseType.POST.name().toLowerCase(), CasWebflo... | java | protected void createRedirectToServiceActionState(final Flow flow) {
val redirectToView = createActionState(flow, CasWebflowConstants.STATE_ID_REDIRECT, CasWebflowConstants.ACTION_ID_REDIRECT_TO_SERVICE);
createTransitionForState(redirectToView, Response.ResponseType.POST.name().toLowerCase(), CasWebflo... | [
"protected",
"void",
"createRedirectToServiceActionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"redirectToView",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_REDIRECT",
",",
"CasWebflowConstants",
".",
"ACTION_ID_REDIRECT_TO... | Create redirect to service action state.
@param flow the flow | [
"Create",
"redirect",
"to",
"service",
"action",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L293-L298 |
127,207 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createServiceAuthorizationCheckAction | protected void createServiceAuthorizationCheckAction(final Flow flow) {
val serviceAuthorizationCheck = createActionState(flow,
CasWebflowConstants.STATE_ID_SERVICE_AUTHZ_CHECK, "serviceAuthorizationCheck");
createStateDefaultTransition(serviceAuthorizationCheck, CasWebflowConstants.STATE_ID... | java | protected void createServiceAuthorizationCheckAction(final Flow flow) {
val serviceAuthorizationCheck = createActionState(flow,
CasWebflowConstants.STATE_ID_SERVICE_AUTHZ_CHECK, "serviceAuthorizationCheck");
createStateDefaultTransition(serviceAuthorizationCheck, CasWebflowConstants.STATE_ID... | [
"protected",
"void",
"createServiceAuthorizationCheckAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"serviceAuthorizationCheck",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_SERVICE_AUTHZ_CHECK",
",",
"\"serviceAuthorizationCheck\... | Create service authorization check action.
@param flow the flow | [
"Create",
"service",
"authorization",
"check",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L305-L309 |
127,208 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createGatewayServicesMgmtAction | protected void createGatewayServicesMgmtAction(final Flow flow) {
val gatewayServicesManagementCheck = createActionState(flow,
CasWebflowConstants.STATE_ID_GATEWAY_SERVICES_MGMT_CHECK, "gatewayServicesManagementCheck");
createTransitionForState(gatewayServicesManagementCheck, CasWebflowConst... | java | protected void createGatewayServicesMgmtAction(final Flow flow) {
val gatewayServicesManagementCheck = createActionState(flow,
CasWebflowConstants.STATE_ID_GATEWAY_SERVICES_MGMT_CHECK, "gatewayServicesManagementCheck");
createTransitionForState(gatewayServicesManagementCheck, CasWebflowConst... | [
"protected",
"void",
"createGatewayServicesMgmtAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"gatewayServicesManagementCheck",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_GATEWAY_SERVICES_MGMT_CHECK",
",",
"\"gatewayServicesMana... | Create gateway services mgmt action.
@param flow the flow | [
"Create",
"gateway",
"services",
"mgmt",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L316-L320 |
127,209 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createInjectHeadersActionState | protected void createInjectHeadersActionState(final Flow flow) {
val headerState = createActionState(flow, CasWebflowConstants.STATE_ID_HEADER_VIEW, "injectResponseHeadersAction");
createTransitionForState(headerState, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_END_WEBFLOW);... | java | protected void createInjectHeadersActionState(final Flow flow) {
val headerState = createActionState(flow, CasWebflowConstants.STATE_ID_HEADER_VIEW, "injectResponseHeadersAction");
createTransitionForState(headerState, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_END_WEBFLOW);... | [
"protected",
"void",
"createInjectHeadersActionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"headerState",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_HEADER_VIEW",
",",
"\"injectResponseHeadersAction\"",
")",
";",
"create... | Create header end state.
@param flow the flow | [
"Create",
"header",
"end",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L370-L374 |
127,210 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createRedirectUnauthorizedServiceUrlEndState | protected void createRedirectUnauthorizedServiceUrlEndState(final Flow flow) {
val state = createEndState(flow, CasWebflowConstants.STATE_ID_VIEW_REDIR_UNAUTHZ_URL, "flowScope.unauthorizedRedirectUrl", true);
state.getEntryActionList().add(createEvaluateAction("redirectUnauthorizedServiceUrlAction"));
... | java | protected void createRedirectUnauthorizedServiceUrlEndState(final Flow flow) {
val state = createEndState(flow, CasWebflowConstants.STATE_ID_VIEW_REDIR_UNAUTHZ_URL, "flowScope.unauthorizedRedirectUrl", true);
state.getEntryActionList().add(createEvaluateAction("redirectUnauthorizedServiceUrlAction"));
... | [
"protected",
"void",
"createRedirectUnauthorizedServiceUrlEndState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"state",
"=",
"createEndState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_VIEW_REDIR_UNAUTHZ_URL",
",",
"\"flowScope.unauthorizedRedirectUrl\"",
... | Create redirect unauthorized service url end state.
@param flow the flow | [
"Create",
"redirect",
"unauthorized",
"service",
"url",
"end",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L381-L384 |
127,211 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createGenericLoginSuccessEndState | protected void createGenericLoginSuccessEndState(final Flow flow) {
val state = createEndState(flow, CasWebflowConstants.STATE_ID_VIEW_GENERIC_LOGIN_SUCCESS, CasWebflowConstants.VIEW_ID_GENERIC_SUCCESS);
state.getEntryActionList().add(createEvaluateAction("genericSuccessViewAction"));
} | java | protected void createGenericLoginSuccessEndState(final Flow flow) {
val state = createEndState(flow, CasWebflowConstants.STATE_ID_VIEW_GENERIC_LOGIN_SUCCESS, CasWebflowConstants.VIEW_ID_GENERIC_SUCCESS);
state.getEntryActionList().add(createEvaluateAction("genericSuccessViewAction"));
} | [
"protected",
"void",
"createGenericLoginSuccessEndState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"state",
"=",
"createEndState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_VIEW_GENERIC_LOGIN_SUCCESS",
",",
"CasWebflowConstants",
".",
"VIEW_ID_GENERIC_... | Create generic login success end state.
@param flow the flow | [
"Create",
"generic",
"login",
"success",
"end",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L400-L403 |
127,212 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createServiceWarningViewState | protected void createServiceWarningViewState(final Flow flow) {
val stateWarning = createViewState(flow, CasWebflowConstants.STATE_ID_SHOW_WARNING_VIEW, CasWebflowConstants.VIEW_ID_CONFIRM);
createTransitionForState(stateWarning, CasWebflowConstants.TRANSITION_ID_SUCCESS, "finalizeWarning");
val... | java | protected void createServiceWarningViewState(final Flow flow) {
val stateWarning = createViewState(flow, CasWebflowConstants.STATE_ID_SHOW_WARNING_VIEW, CasWebflowConstants.VIEW_ID_CONFIRM);
createTransitionForState(stateWarning, CasWebflowConstants.TRANSITION_ID_SUCCESS, "finalizeWarning");
val... | [
"protected",
"void",
"createServiceWarningViewState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"stateWarning",
"=",
"createViewState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_SHOW_WARNING_VIEW",
",",
"CasWebflowConstants",
".",
"VIEW_ID_CONFIRM",
"... | Create service warning view state.
@param flow the flow | [
"Create",
"service",
"warning",
"view",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L410-L415 |
127,213 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createDefaultDecisionStates | protected void createDefaultDecisionStates(final Flow flow) {
createServiceUnauthorizedCheckDecisionState(flow);
createServiceCheckDecisionState(flow);
createWarnDecisionState(flow);
createGatewayRequestCheckDecisionState(flow);
createHasServiceCheckDecisionState(flow);
c... | java | protected void createDefaultDecisionStates(final Flow flow) {
createServiceUnauthorizedCheckDecisionState(flow);
createServiceCheckDecisionState(flow);
createWarnDecisionState(flow);
createGatewayRequestCheckDecisionState(flow);
createHasServiceCheckDecisionState(flow);
c... | [
"protected",
"void",
"createDefaultDecisionStates",
"(",
"final",
"Flow",
"flow",
")",
"{",
"createServiceUnauthorizedCheckDecisionState",
"(",
"flow",
")",
";",
"createServiceCheckDecisionState",
"(",
"flow",
")",
";",
"createWarnDecisionState",
"(",
"flow",
")",
";",
... | Create default decision states.
@param flow the flow | [
"Create",
"default",
"decision",
"states",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L437-L444 |
127,214 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createServiceUnauthorizedCheckDecisionState | protected void createServiceUnauthorizedCheckDecisionState(final Flow flow) {
val decision = createDecisionState(flow, CasWebflowConstants.STATE_ID_SERVICE_UNAUTHZ_CHECK,
"flowScope.unauthorizedRedirectUrl != null",
CasWebflowConstants.STATE_ID_VIEW_REDIR_UNAUTHZ_URL,
CasWebf... | java | protected void createServiceUnauthorizedCheckDecisionState(final Flow flow) {
val decision = createDecisionState(flow, CasWebflowConstants.STATE_ID_SERVICE_UNAUTHZ_CHECK,
"flowScope.unauthorizedRedirectUrl != null",
CasWebflowConstants.STATE_ID_VIEW_REDIR_UNAUTHZ_URL,
CasWebf... | [
"protected",
"void",
"createServiceUnauthorizedCheckDecisionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"decision",
"=",
"createDecisionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_SERVICE_UNAUTHZ_CHECK",
",",
"\"flowScope.unauthorizedRedirectUrl... | Create service unauthorized check decision state.
@param flow the flow | [
"Create",
"service",
"unauthorized",
"check",
"decision",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L451-L457 |
127,215 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createServiceCheckDecisionState | protected void createServiceCheckDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_SERVICE_CHECK,
"flowScope.service != null",
CasWebflowConstants.STATE_ID_GENERATE_SERVICE_TICKET,
CasWebflowConstants.STATE_ID_VIEW_GENERIC_LOGIN_SUCCESS);... | java | protected void createServiceCheckDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_SERVICE_CHECK,
"flowScope.service != null",
CasWebflowConstants.STATE_ID_GENERATE_SERVICE_TICKET,
CasWebflowConstants.STATE_ID_VIEW_GENERIC_LOGIN_SUCCESS);... | [
"protected",
"void",
"createServiceCheckDecisionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"createDecisionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_SERVICE_CHECK",
",",
"\"flowScope.service != null\"",
",",
"CasWebflowConstants",
".",
"STATE_ID_GE... | Create service check decision state.
@param flow the flow | [
"Create",
"service",
"check",
"decision",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L464-L469 |
127,216 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createWarnDecisionState | protected void createWarnDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_WARN,
"flowScope.warnCookieValue",
CasWebflowConstants.STATE_ID_SHOW_WARNING_VIEW,
CasWebflowConstants.STATE_ID_REDIRECT);
} | java | protected void createWarnDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_WARN,
"flowScope.warnCookieValue",
CasWebflowConstants.STATE_ID_SHOW_WARNING_VIEW,
CasWebflowConstants.STATE_ID_REDIRECT);
} | [
"protected",
"void",
"createWarnDecisionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"createDecisionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_WARN",
",",
"\"flowScope.warnCookieValue\"",
",",
"CasWebflowConstants",
".",
"STATE_ID_SHOW_WARNING_VIEW",... | Create warn decision state.
@param flow the flow | [
"Create",
"warn",
"decision",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L476-L481 |
127,217 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createGatewayRequestCheckDecisionState | protected void createGatewayRequestCheckDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_GATEWAY_REQUEST_CHECK,
"requestParameters.gateway != '' and requestParameters.gateway != null and flowScope.service != null",
CasWebflowConstants.STATE_ID_GATEW... | java | protected void createGatewayRequestCheckDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_GATEWAY_REQUEST_CHECK,
"requestParameters.gateway != '' and requestParameters.gateway != null and flowScope.service != null",
CasWebflowConstants.STATE_ID_GATEW... | [
"protected",
"void",
"createGatewayRequestCheckDecisionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"createDecisionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_GATEWAY_REQUEST_CHECK",
",",
"\"requestParameters.gateway != '' and requestParameters.gateway != nul... | Create gateway request check decision state.
@param flow the flow | [
"Create",
"gateway",
"request",
"check",
"decision",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L488-L493 |
127,218 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createHasServiceCheckDecisionState | protected void createHasServiceCheckDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_HAS_SERVICE_CHECK,
"flowScope.service != null",
CasWebflowConstants.STATE_ID_RENEW_REQUEST_CHECK,
CasWebflowConstants.STATE_ID_VIEW_GENERIC_LOGIN_SUCCES... | java | protected void createHasServiceCheckDecisionState(final Flow flow) {
createDecisionState(flow, CasWebflowConstants.STATE_ID_HAS_SERVICE_CHECK,
"flowScope.service != null",
CasWebflowConstants.STATE_ID_RENEW_REQUEST_CHECK,
CasWebflowConstants.STATE_ID_VIEW_GENERIC_LOGIN_SUCCES... | [
"protected",
"void",
"createHasServiceCheckDecisionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"createDecisionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_HAS_SERVICE_CHECK",
",",
"\"flowScope.service != null\"",
",",
"CasWebflowConstants",
".",
"STAT... | Create has service check decision state.
@param flow the flow | [
"Create",
"has",
"service",
"check",
"decision",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L500-L505 |
127,219 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createRenewCheckActionState | protected void createRenewCheckActionState(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_RENEW_REQUEST_CHECK, CasWebflowConstants.ACTION_ID_RENEW_AUTHN_REQUEST);
createTransitionForState(action, CasWebflowConstants.TRANSITION_ID_PROCEED, CasWebflowConstants.STATE_I... | java | protected void createRenewCheckActionState(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_RENEW_REQUEST_CHECK, CasWebflowConstants.ACTION_ID_RENEW_AUTHN_REQUEST);
createTransitionForState(action, CasWebflowConstants.TRANSITION_ID_PROCEED, CasWebflowConstants.STATE_I... | [
"protected",
"void",
"createRenewCheckActionState",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"action",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_RENEW_REQUEST_CHECK",
",",
"CasWebflowConstants",
".",
"ACTION_ID_RENEW_AUTHN_REQ... | Create renew check state.
@param flow the flow | [
"Create",
"renew",
"check",
"state",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L512-L517 |
127,220 | apereo/cas | core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/util/DefaultUniqueTicketIdGenerator.java | DefaultUniqueTicketIdGenerator.getNewTicketId | @Override
public String getNewTicketId(final String prefix) {
val number = this.numericGenerator.getNextNumberAsString();
val ticketBody = this.randomStringGenerator.getNewString().replace('_', '-');
val origSuffix = StringUtils.defaultString(this.suffix);
val finalizedSuffix = Strin... | java | @Override
public String getNewTicketId(final String prefix) {
val number = this.numericGenerator.getNextNumberAsString();
val ticketBody = this.randomStringGenerator.getNewString().replace('_', '-');
val origSuffix = StringUtils.defaultString(this.suffix);
val finalizedSuffix = Strin... | [
"@",
"Override",
"public",
"String",
"getNewTicketId",
"(",
"final",
"String",
"prefix",
")",
"{",
"val",
"number",
"=",
"this",
".",
"numericGenerator",
".",
"getNextNumberAsString",
"(",
")",
";",
"val",
"ticketBody",
"=",
"this",
".",
"randomStringGenerator",... | Due to a bug in mod-auth-cas and possibly other clients in the way tickets are parsed,
the ticket id body is sanitized to remove the character "_", replacing it with "-" instead.
This might be revisited in the future and removed, once at least mod-auth-cas fixes
the issue.
@param prefix The prefix we want attached to ... | [
"Due",
"to",
"a",
"bug",
"in",
"mod",
"-",
"auth",
"-",
"cas",
"and",
"possibly",
"other",
"clients",
"in",
"the",
"way",
"tickets",
"are",
"parsed",
"the",
"ticket",
"id",
"body",
"is",
"sanitized",
"to",
"remove",
"the",
"character",
"_",
"replacing",
... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/util/DefaultUniqueTicketIdGenerator.java#L102-L109 |
127,221 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/email/EmailProperties.java | EmailProperties.isUndefined | public boolean isUndefined() {
return StringUtils.isBlank(text) || StringUtils.isBlank(from) || StringUtils.isBlank(subject);
} | java | public boolean isUndefined() {
return StringUtils.isBlank(text) || StringUtils.isBlank(from) || StringUtils.isBlank(subject);
} | [
"public",
"boolean",
"isUndefined",
"(",
")",
"{",
"return",
"StringUtils",
".",
"isBlank",
"(",
"text",
")",
"||",
"StringUtils",
".",
"isBlank",
"(",
"from",
")",
"||",
"StringUtils",
".",
"isBlank",
"(",
"subject",
")",
";",
"}"
] | Indicate whether email settings are defined.
@return true if undefined, false otherwise. | [
"Indicate",
"whether",
"email",
"settings",
"are",
"defined",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/email/EmailProperties.java#L86-L88 |
127,222 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/email/EmailProperties.java | EmailProperties.getFormattedBody | public String getFormattedBody(final Object... arguments) {
if (StringUtils.isBlank(this.text)) {
LOGGER.warn("No email body is defined");
return StringUtils.EMPTY;
}
try {
val templateFile = ResourceUtils.getFile(this.text);
val contents = FileUti... | java | public String getFormattedBody(final Object... arguments) {
if (StringUtils.isBlank(this.text)) {
LOGGER.warn("No email body is defined");
return StringUtils.EMPTY;
}
try {
val templateFile = ResourceUtils.getFile(this.text);
val contents = FileUti... | [
"public",
"String",
"getFormattedBody",
"(",
"final",
"Object",
"...",
"arguments",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isBlank",
"(",
"this",
".",
"text",
")",
")",
"{",
"LOGGER",
".",
"warn",
"(",
"\"No email body is defined\"",
")",
";",
"return",
... | Format body.
@param arguments the arguments
@return the string | [
"Format",
"body",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/email/EmailProperties.java#L96-L109 |
127,223 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java | SingleSignOnSessionsEndpoint.getActiveSsoSessions | private Collection<Map<String, Object>> getActiveSsoSessions(final SsoSessionReportOptions option) {
val activeSessions = new ArrayList<Map<String, Object>>();
val dateFormat = new ISOStandardDateFormat();
getNonExpiredTicketGrantingTickets().stream().map(TicketGrantingTicket.class::cast)
... | java | private Collection<Map<String, Object>> getActiveSsoSessions(final SsoSessionReportOptions option) {
val activeSessions = new ArrayList<Map<String, Object>>();
val dateFormat = new ISOStandardDateFormat();
getNonExpiredTicketGrantingTickets().stream().map(TicketGrantingTicket.class::cast)
... | [
"private",
"Collection",
"<",
"Map",
"<",
"String",
",",
"Object",
">",
">",
"getActiveSsoSessions",
"(",
"final",
"SsoSessionReportOptions",
"option",
")",
"{",
"val",
"activeSessions",
"=",
"new",
"ArrayList",
"<",
"Map",
"<",
"String",
",",
"Object",
">",
... | Gets sso sessions.
@param option the option
@return the sso sessions | [
"Gets",
"sso",
"sessions",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java#L58-L87 |
127,224 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java | SingleSignOnSessionsEndpoint.getNonExpiredTicketGrantingTickets | private Collection<Ticket> getNonExpiredTicketGrantingTickets() {
return this.centralAuthenticationService.getTickets(ticket -> ticket instanceof TicketGrantingTicket && !ticket.isExpired());
} | java | private Collection<Ticket> getNonExpiredTicketGrantingTickets() {
return this.centralAuthenticationService.getTickets(ticket -> ticket instanceof TicketGrantingTicket && !ticket.isExpired());
} | [
"private",
"Collection",
"<",
"Ticket",
">",
"getNonExpiredTicketGrantingTickets",
"(",
")",
"{",
"return",
"this",
".",
"centralAuthenticationService",
".",
"getTickets",
"(",
"ticket",
"->",
"ticket",
"instanceof",
"TicketGrantingTicket",
"&&",
"!",
"ticket",
".",
... | Gets non expired ticket granting tickets.
@return the non expired ticket granting tickets | [
"Gets",
"non",
"expired",
"ticket",
"granting",
"tickets",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java#L94-L96 |
127,225 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java | SingleSignOnSessionsEndpoint.getSsoSessions | @ReadOperation
public Map<String, Object> getSsoSessions(final String type) {
val sessionsMap = new HashMap<String, Object>(1);
val option = SsoSessionReportOptions.valueOf(type);
val activeSsoSessions = getActiveSsoSessions(option);
sessionsMap.put("activeSsoSessions", activeSsoSess... | java | @ReadOperation
public Map<String, Object> getSsoSessions(final String type) {
val sessionsMap = new HashMap<String, Object>(1);
val option = SsoSessionReportOptions.valueOf(type);
val activeSsoSessions = getActiveSsoSessions(option);
sessionsMap.put("activeSsoSessions", activeSsoSess... | [
"@",
"ReadOperation",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getSsoSessions",
"(",
"final",
"String",
"type",
")",
"{",
"val",
"sessionsMap",
"=",
"new",
"HashMap",
"<",
"String",
",",
"Object",
">",
"(",
"1",
")",
";",
"val",
"option",
"... | Endpoint for getting SSO Sessions in JSON format.
@param type the type
@return the sso sessions | [
"Endpoint",
"for",
"getting",
"SSO",
"Sessions",
"in",
"JSON",
"format",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java#L104-L138 |
127,226 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java | SingleSignOnSessionsEndpoint.destroySsoSession | @DeleteOperation
public Map<String, Object> destroySsoSession(@Selector final String ticketGrantingTicket) {
val sessionsMap = new HashMap<String, Object>(1);
try {
this.centralAuthenticationService.destroyTicketGrantingTicket(ticketGrantingTicket);
sessionsMap.put(STATUS, H... | java | @DeleteOperation
public Map<String, Object> destroySsoSession(@Selector final String ticketGrantingTicket) {
val sessionsMap = new HashMap<String, Object>(1);
try {
this.centralAuthenticationService.destroyTicketGrantingTicket(ticketGrantingTicket);
sessionsMap.put(STATUS, H... | [
"@",
"DeleteOperation",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"destroySsoSession",
"(",
"@",
"Selector",
"final",
"String",
"ticketGrantingTicket",
")",
"{",
"val",
"sessionsMap",
"=",
"new",
"HashMap",
"<",
"String",
",",
"Object",
">",
"(",
"... | Endpoint for destroying a single SSO Session.
@param ticketGrantingTicket the ticket granting ticket
@return result map | [
"Endpoint",
"for",
"destroying",
"a",
"single",
"SSO",
"Session",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java#L146-L161 |
127,227 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java | SingleSignOnSessionsEndpoint.destroySsoSessions | @DeleteOperation
public Map<String, Object> destroySsoSessions(final String type) {
val sessionsMap = new HashMap<String, Object>();
val failedTickets = new HashMap<String, String>();
val option = SsoSessionReportOptions.valueOf(type);
val collection = getActiveSsoSessions(option);
... | java | @DeleteOperation
public Map<String, Object> destroySsoSessions(final String type) {
val sessionsMap = new HashMap<String, Object>();
val failedTickets = new HashMap<String, String>();
val option = SsoSessionReportOptions.valueOf(type);
val collection = getActiveSsoSessions(option);
... | [
"@",
"DeleteOperation",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"destroySsoSessions",
"(",
"final",
"String",
"type",
")",
"{",
"val",
"sessionsMap",
"=",
"new",
"HashMap",
"<",
"String",
",",
"Object",
">",
"(",
")",
";",
"val",
"failedTickets... | Destroy sso sessions map.
@param type the type
@return the map | [
"Destroy",
"sso",
"sessions",
"map",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpoint.java#L169-L194 |
127,228 | apereo/cas | api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/geo/GeoLocationRequest.java | GeoLocationRequest.isValid | public boolean isValid() {
return StringUtils.isNotBlank(this.latitude) && StringUtils.isNotBlank(this.longitude)
&& StringUtils.isNotBlank(this.accuracy) && StringUtils.isNotBlank(this.timestamp);
} | java | public boolean isValid() {
return StringUtils.isNotBlank(this.latitude) && StringUtils.isNotBlank(this.longitude)
&& StringUtils.isNotBlank(this.accuracy) && StringUtils.isNotBlank(this.timestamp);
} | [
"public",
"boolean",
"isValid",
"(",
")",
"{",
"return",
"StringUtils",
".",
"isNotBlank",
"(",
"this",
".",
"latitude",
")",
"&&",
"StringUtils",
".",
"isNotBlank",
"(",
"this",
".",
"longitude",
")",
"&&",
"StringUtils",
".",
"isNotBlank",
"(",
"this",
"... | Check whether the geolocation contains enough data to proceed.
@return true/false | [
"Check",
"whether",
"the",
"geolocation",
"contains",
"enough",
"data",
"to",
"proceed",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/geo/GeoLocationRequest.java#L41-L44 |
127,229 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/RegisteredServicesEndpoint.java | RegisteredServicesEndpoint.handle | @ReadOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
public Collection<RegisteredService> handle() {
return this.servicesManager.load();
} | java | @ReadOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
public Collection<RegisteredService> handle() {
return this.servicesManager.load();
} | [
"@",
"ReadOperation",
"(",
"produces",
"=",
"{",
"ActuatorMediaType",
".",
"V2_JSON",
",",
"\"application/vnd.cas.services+yaml\"",
",",
"MediaType",
".",
"APPLICATION_JSON_VALUE",
"}",
")",
"public",
"Collection",
"<",
"RegisteredService",
">",
"handle",
"(",
")",
... | Handle and produce a list of services from registry.
@return the web async task | [
"Handle",
"and",
"produce",
"a",
"list",
"of",
"services",
"from",
"registry",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/RegisteredServicesEndpoint.java#L48-L51 |
127,230 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/RegisteredServicesEndpoint.java | RegisteredServicesEndpoint.fetchService | @ReadOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
public RegisteredService fetchService(@Selector final String id) {
if (NumberUtils.isDigits(id)) {
return this.servicesManager.findServiceBy(Long.parseLong(id));
... | java | @ReadOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
public RegisteredService fetchService(@Selector final String id) {
if (NumberUtils.isDigits(id)) {
return this.servicesManager.findServiceBy(Long.parseLong(id));
... | [
"@",
"ReadOperation",
"(",
"produces",
"=",
"{",
"ActuatorMediaType",
".",
"V2_JSON",
",",
"\"application/vnd.cas.services+yaml\"",
",",
"MediaType",
".",
"APPLICATION_JSON_VALUE",
"}",
")",
"public",
"RegisteredService",
"fetchService",
"(",
"@",
"Selector",
"final",
... | Fetch service either by numeric id or service id pattern.
@param id the id
@return the registered service | [
"Fetch",
"service",
"either",
"by",
"numeric",
"id",
"or",
"service",
"id",
"pattern",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/RegisteredServicesEndpoint.java#L59-L65 |
127,231 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/RegisteredServicesEndpoint.java | RegisteredServicesEndpoint.deleteService | @DeleteOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
public RegisteredService deleteService(@Selector final String id) {
if (NumberUtils.isDigits(id)) {
val svc = this.servicesManager.findServiceBy(Long.parseLong(id));
... | java | @DeleteOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
public RegisteredService deleteService(@Selector final String id) {
if (NumberUtils.isDigits(id)) {
val svc = this.servicesManager.findServiceBy(Long.parseLong(id));
... | [
"@",
"DeleteOperation",
"(",
"produces",
"=",
"{",
"ActuatorMediaType",
".",
"V2_JSON",
",",
"\"application/vnd.cas.services+yaml\"",
",",
"MediaType",
".",
"APPLICATION_JSON_VALUE",
"}",
")",
"public",
"RegisteredService",
"deleteService",
"(",
"@",
"Selector",
"final"... | Delete registered service.
@param id the id
@return the registered service | [
"Delete",
"registered",
"service",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/RegisteredServicesEndpoint.java#L73-L88 |
127,232 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.verifySamlRegisteredService | protected SamlRegisteredService verifySamlRegisteredService(final String serviceId) {
if (StringUtils.isBlank(serviceId)) {
throw new UnauthorizedServiceException(UnauthorizedServiceException.CODE_UNAUTHZ_SERVICE,
"Could not verify/locate SAML registered service since no serviceId is... | java | protected SamlRegisteredService verifySamlRegisteredService(final String serviceId) {
if (StringUtils.isBlank(serviceId)) {
throw new UnauthorizedServiceException(UnauthorizedServiceException.CODE_UNAUTHZ_SERVICE,
"Could not verify/locate SAML registered service since no serviceId is... | [
"protected",
"SamlRegisteredService",
"verifySamlRegisteredService",
"(",
"final",
"String",
"serviceId",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isBlank",
"(",
"serviceId",
")",
")",
"{",
"throw",
"new",
"UnauthorizedServiceException",
"(",
"UnauthorizedServiceExcept... | Gets registered service and verify.
@param serviceId the service id
@return the registered service and verify | [
"Gets",
"registered",
"service",
"and",
"verify",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L108-L130 |
127,233 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.retrieveSamlAuthenticationRequestFromHttpRequest | protected AuthnRequest retrieveSamlAuthenticationRequestFromHttpRequest(final HttpServletRequest request) throws Exception {
LOGGER.debug("Retrieving authentication request from scope");
val requestValue = request.getParameter(SamlProtocolConstants.PARAMETER_SAML_REQUEST);
if (StringUtils.isBlan... | java | protected AuthnRequest retrieveSamlAuthenticationRequestFromHttpRequest(final HttpServletRequest request) throws Exception {
LOGGER.debug("Retrieving authentication request from scope");
val requestValue = request.getParameter(SamlProtocolConstants.PARAMETER_SAML_REQUEST);
if (StringUtils.isBlan... | [
"protected",
"AuthnRequest",
"retrieveSamlAuthenticationRequestFromHttpRequest",
"(",
"final",
"HttpServletRequest",
"request",
")",
"throws",
"Exception",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Retrieving authentication request from scope\"",
")",
";",
"val",
"requestValue",
"... | Retrieve authn request authn request.
@param request the request
@return the authn request
@throws Exception the exception | [
"Retrieve",
"authn",
"request",
"authn",
"request",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L139-L148 |
127,234 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.logCasValidationAssertion | protected void logCasValidationAssertion(final Assertion assertion) {
LOGGER.debug("CAS Assertion Valid: [{}]", assertion.isValid());
LOGGER.debug("CAS Assertion Principal: [{}]", assertion.getPrincipal().getName());
LOGGER.debug("CAS Assertion authentication Date: [{}]", assertion.getAuthentica... | java | protected void logCasValidationAssertion(final Assertion assertion) {
LOGGER.debug("CAS Assertion Valid: [{}]", assertion.isValid());
LOGGER.debug("CAS Assertion Principal: [{}]", assertion.getPrincipal().getName());
LOGGER.debug("CAS Assertion authentication Date: [{}]", assertion.getAuthentica... | [
"protected",
"void",
"logCasValidationAssertion",
"(",
"final",
"Assertion",
"assertion",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"CAS Assertion Valid: [{}]\"",
",",
"assertion",
".",
"isValid",
"(",
")",
")",
";",
"LOGGER",
".",
"debug",
"(",
"\"CAS Assertion Pr... | Log cas validation assertion.
@param assertion the assertion | [
"Log",
"cas",
"validation",
"assertion",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L195-L203 |
127,235 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.issueAuthenticationRequestRedirect | protected void issueAuthenticationRequestRedirect(final Pair<? extends SignableSAMLObject, MessageContext> pair,
final HttpServletRequest request,
final HttpServletResponse response) throws Exception {
va... | java | protected void issueAuthenticationRequestRedirect(final Pair<? extends SignableSAMLObject, MessageContext> pair,
final HttpServletRequest request,
final HttpServletResponse response) throws Exception {
va... | [
"protected",
"void",
"issueAuthenticationRequestRedirect",
"(",
"final",
"Pair",
"<",
"?",
"extends",
"SignableSAMLObject",
",",
"MessageContext",
">",
"pair",
",",
"final",
"HttpServletRequest",
"request",
",",
"final",
"HttpServletResponse",
"response",
")",
"throws",... | Redirect request for authentication.
@param pair the pair
@param request the request
@param response the response
@throws Exception the exception | [
"Redirect",
"request",
"for",
"authentication",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L213-L229 |
127,236 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.getAuthenticationContextMappings | protected Map<String, String> getAuthenticationContextMappings() {
val authnContexts = samlProfileHandlerConfigurationContext.getCasProperties().getAuthn().getSamlIdp().getAuthenticationContextClassMappings();
return CollectionUtils.convertDirectedListToMap(authnContexts);
} | java | protected Map<String, String> getAuthenticationContextMappings() {
val authnContexts = samlProfileHandlerConfigurationContext.getCasProperties().getAuthn().getSamlIdp().getAuthenticationContextClassMappings();
return CollectionUtils.convertDirectedListToMap(authnContexts);
} | [
"protected",
"Map",
"<",
"String",
",",
"String",
">",
"getAuthenticationContextMappings",
"(",
")",
"{",
"val",
"authnContexts",
"=",
"samlProfileHandlerConfigurationContext",
".",
"getCasProperties",
"(",
")",
".",
"getAuthn",
"(",
")",
".",
"getSamlIdp",
"(",
"... | Gets authentication context mappings.
@return the authentication context mappings | [
"Gets",
"authentication",
"context",
"mappings",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L236-L239 |
127,237 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.buildRedirectUrlByRequestedAuthnContext | protected String buildRedirectUrlByRequestedAuthnContext(final String initialUrl, final AuthnRequest authnRequest, final HttpServletRequest request) {
val authenticationContextClassMappings = samlProfileHandlerConfigurationContext.getCasProperties()
.getAuthn().getSamlIdp().getAuthenticationContextC... | java | protected String buildRedirectUrlByRequestedAuthnContext(final String initialUrl, final AuthnRequest authnRequest, final HttpServletRequest request) {
val authenticationContextClassMappings = samlProfileHandlerConfigurationContext.getCasProperties()
.getAuthn().getSamlIdp().getAuthenticationContextC... | [
"protected",
"String",
"buildRedirectUrlByRequestedAuthnContext",
"(",
"final",
"String",
"initialUrl",
",",
"final",
"AuthnRequest",
"authnRequest",
",",
"final",
"HttpServletRequest",
"request",
")",
"{",
"val",
"authenticationContextClassMappings",
"=",
"samlProfileHandler... | Build redirect url by requested authn context.
@param initialUrl the initial url
@param authnRequest the authn request
@param request the request
@return the redirect url | [
"Build",
"redirect",
"url",
"by",
"requested",
"authn",
"context",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L249-L274 |
127,238 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.initiateAuthenticationRequest | protected void initiateAuthenticationRequest(final Pair<? extends SignableSAMLObject, MessageContext> pair,
final HttpServletResponse response,
final HttpServletRequest request) throws Exception {
verifySamlAuthen... | java | protected void initiateAuthenticationRequest(final Pair<? extends SignableSAMLObject, MessageContext> pair,
final HttpServletResponse response,
final HttpServletRequest request) throws Exception {
verifySamlAuthen... | [
"protected",
"void",
"initiateAuthenticationRequest",
"(",
"final",
"Pair",
"<",
"?",
"extends",
"SignableSAMLObject",
",",
"MessageContext",
">",
"pair",
",",
"final",
"HttpServletResponse",
"response",
",",
"final",
"HttpServletRequest",
"request",
")",
"throws",
"E... | Initiate authentication request.
@param pair the pair
@param response the response
@param request the request
@throws Exception the exception | [
"Initiate",
"authentication",
"request",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L323-L329 |
127,239 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.verifySamlAuthenticationRequest | protected Pair<SamlRegisteredService, SamlRegisteredServiceServiceProviderMetadataFacade> verifySamlAuthenticationRequest(
final Pair<? extends SignableSAMLObject, MessageContext> authenticationContext,
final HttpServletRequest request) throws Exception {
val authnRequest = (AuthnRequest) authen... | java | protected Pair<SamlRegisteredService, SamlRegisteredServiceServiceProviderMetadataFacade> verifySamlAuthenticationRequest(
final Pair<? extends SignableSAMLObject, MessageContext> authenticationContext,
final HttpServletRequest request) throws Exception {
val authnRequest = (AuthnRequest) authen... | [
"protected",
"Pair",
"<",
"SamlRegisteredService",
",",
"SamlRegisteredServiceServiceProviderMetadataFacade",
">",
"verifySamlAuthenticationRequest",
"(",
"final",
"Pair",
"<",
"?",
"extends",
"SignableSAMLObject",
",",
"MessageContext",
">",
"authenticationContext",
",",
"fi... | Verify saml authentication request.
@param authenticationContext the pair
@param request the request
@return the pair
@throws Exception the exception | [
"Verify",
"saml",
"authentication",
"request",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L339-L360 |
127,240 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.buildSamlResponse | protected void buildSamlResponse(final HttpServletResponse response,
final HttpServletRequest request,
final Pair<AuthnRequest, MessageContext> authenticationContext,
final Assertion casAssertion,
... | java | protected void buildSamlResponse(final HttpServletResponse response,
final HttpServletRequest request,
final Pair<AuthnRequest, MessageContext> authenticationContext,
final Assertion casAssertion,
... | [
"protected",
"void",
"buildSamlResponse",
"(",
"final",
"HttpServletResponse",
"response",
",",
"final",
"HttpServletRequest",
"request",
",",
"final",
"Pair",
"<",
"AuthnRequest",
",",
"MessageContext",
">",
"authenticationContext",
",",
"final",
"Assertion",
"casAsser... | Build saml response.
@param response the response
@param request the request
@param authenticationContext the authentication context
@param casAssertion the cas assertion
@param binding the binding | [
"Build",
"saml",
"response",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L413-L427 |
127,241 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.getRegisteredServiceAndFacade | protected Pair<SamlRegisteredService, SamlRegisteredServiceServiceProviderMetadataFacade> getRegisteredServiceAndFacade(final AuthnRequest request) {
val issuer = SamlIdPUtils.getIssuerFromSamlObject(request);
LOGGER.debug("Located issuer [{}] from authentication context", issuer);
val register... | java | protected Pair<SamlRegisteredService, SamlRegisteredServiceServiceProviderMetadataFacade> getRegisteredServiceAndFacade(final AuthnRequest request) {
val issuer = SamlIdPUtils.getIssuerFromSamlObject(request);
LOGGER.debug("Located issuer [{}] from authentication context", issuer);
val register... | [
"protected",
"Pair",
"<",
"SamlRegisteredService",
",",
"SamlRegisteredServiceServiceProviderMetadataFacade",
">",
"getRegisteredServiceAndFacade",
"(",
"final",
"AuthnRequest",
"request",
")",
"{",
"val",
"issuer",
"=",
"SamlIdPUtils",
".",
"getIssuerFromSamlObject",
"(",
... | Gets registered service and facade.
@param request the request
@return the registered service and facade | [
"Gets",
"registered",
"service",
"and",
"facade",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L435-L450 |
127,242 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java | AbstractSamlProfileHandlerController.decodeSoapRequest | protected MessageContext decodeSoapRequest(final HttpServletRequest request) {
try {
val decoder = new HTTPSOAP11Decoder();
decoder.setParserPool(samlProfileHandlerConfigurationContext.getOpenSamlConfigBean().getParserPool());
decoder.setHttpServletRequest(request);
... | java | protected MessageContext decodeSoapRequest(final HttpServletRequest request) {
try {
val decoder = new HTTPSOAP11Decoder();
decoder.setParserPool(samlProfileHandlerConfigurationContext.getOpenSamlConfigBean().getParserPool());
decoder.setHttpServletRequest(request);
... | [
"protected",
"MessageContext",
"decodeSoapRequest",
"(",
"final",
"HttpServletRequest",
"request",
")",
"{",
"try",
"{",
"val",
"decoder",
"=",
"new",
"HTTPSOAP11Decoder",
"(",
")",
";",
"decoder",
".",
"setParserPool",
"(",
"samlProfileHandlerConfigurationContext",
"... | Decode soap 11 context.
@param request the request
@return the soap 11 context | [
"Decode",
"soap",
"11",
"context",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/AbstractSamlProfileHandlerController.java#L459-L479 |
127,243 | apereo/cas | support/cas-server-support-jpa-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/JpaTicketRegistry.java | JpaTicketRegistry.deleteTicketGrantingTickets | private int deleteTicketGrantingTickets(final String ticketId) {
var totalCount = 0;
val st = this.ticketCatalog.find(ServiceTicket.PREFIX);
val sql1 = String.format("delete from %s s where s.ticketGrantingTicket.id = :id", getTicketEntityName(st));
var query = entityManager.createQuer... | java | private int deleteTicketGrantingTickets(final String ticketId) {
var totalCount = 0;
val st = this.ticketCatalog.find(ServiceTicket.PREFIX);
val sql1 = String.format("delete from %s s where s.ticketGrantingTicket.id = :id", getTicketEntityName(st));
var query = entityManager.createQuer... | [
"private",
"int",
"deleteTicketGrantingTickets",
"(",
"final",
"String",
"ticketId",
")",
"{",
"var",
"totalCount",
"=",
"0",
";",
"val",
"st",
"=",
"this",
".",
"ticketCatalog",
".",
"find",
"(",
"ServiceTicket",
".",
"PREFIX",
")",
";",
"val",
"sql1",
"=... | Delete ticket granting tickets int.
@param ticketId the ticket id
@return the int | [
"Delete",
"ticket",
"granting",
"tickets",
"int",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-jpa-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/JpaTicketRegistry.java#L187-L209 |
127,244 | apereo/cas | support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionStatusEndpoint.java | SingleSignOnSessionStatusEndpoint.ssoStatus | @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity ssoStatus(final HttpServletRequest request) {
val tgtId = this.ticketGrantingTicketCookieGenerator.retrieveCookieValue(request);
if (StringUtils.isNotBlank(tgtId)) {
val auth = this.ticketRegistrySupport.getAu... | java | @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity ssoStatus(final HttpServletRequest request) {
val tgtId = this.ticketGrantingTicketCookieGenerator.retrieveCookieValue(request);
if (StringUtils.isNotBlank(tgtId)) {
val auth = this.ticketRegistrySupport.getAu... | [
"@",
"GetMapping",
"(",
"produces",
"=",
"MediaType",
".",
"APPLICATION_JSON_VALUE",
")",
"public",
"ResponseEntity",
"ssoStatus",
"(",
"final",
"HttpServletRequest",
"request",
")",
"{",
"val",
"tgtId",
"=",
"this",
".",
"ticketGrantingTicketCookieGenerator",
".",
... | Sso status response entity.
@param request the request
@return the response entity | [
"Sso",
"status",
"response",
"entity",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SingleSignOnSessionStatusEndpoint.java#L38-L54 |
127,245 | apereo/cas | support/cas-server-support-radius-core/src/main/java/org/apereo/cas/adaptors/radius/RadiusUtils.java | RadiusUtils.authenticate | public static Pair<Boolean, Optional<Map<String, Object>>> authenticate(final String username,
final String password,
final List<RadiusServer> servers,
... | java | public static Pair<Boolean, Optional<Map<String, Object>>> authenticate(final String username,
final String password,
final List<RadiusServer> servers,
... | [
"public",
"static",
"Pair",
"<",
"Boolean",
",",
"Optional",
"<",
"Map",
"<",
"String",
",",
"Object",
">",
">",
">",
"authenticate",
"(",
"final",
"String",
"username",
",",
"final",
"String",
"password",
",",
"final",
"List",
"<",
"RadiusServer",
">",
... | Authenticate pair.
@param username the username
@param password the password
@param servers the servers
@param failoverOnAuthenticationFailure the failover on authentication failure
@param failoverOnException the failover on exception
@p... | [
"Authenticate",
"pair",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-radius-core/src/main/java/org/apereo/cas/adaptors/radius/RadiusUtils.java#L36-L64 |
127,246 | apereo/cas | support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/FindPropertiesCommand.java | FindPropertiesCommand.find | @ShellMethod(key = "find", value = "Look up properties associated with a CAS group/module.")
public void find(
@ShellOption(value = {"name"},
help = "Property name regex pattern",
defaultValue = ".+") final String name,
@ShellOption(value = {"strict-match"},
help ... | java | @ShellMethod(key = "find", value = "Look up properties associated with a CAS group/module.")
public void find(
@ShellOption(value = {"name"},
help = "Property name regex pattern",
defaultValue = ".+") final String name,
@ShellOption(value = {"strict-match"},
help ... | [
"@",
"ShellMethod",
"(",
"key",
"=",
"\"find\"",
",",
"value",
"=",
"\"Look up properties associated with a CAS group/module.\"",
")",
"public",
"void",
"find",
"(",
"@",
"ShellOption",
"(",
"value",
"=",
"{",
"\"name\"",
"}",
",",
"help",
"=",
"\"Property name re... | Find property.
@param name the name
@param strict the strict match
@param summary the summary | [
"Find",
"property",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/FindPropertiesCommand.java#L43-L79 |
127,247 | apereo/cas | support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/FindPropertiesCommand.java | FindPropertiesCommand.findByProperty | public Map<String, ConfigurationMetadataProperty> findByProperty(final String name) {
return find(false, RegexUtils.createPattern(name));
} | java | public Map<String, ConfigurationMetadataProperty> findByProperty(final String name) {
return find(false, RegexUtils.createPattern(name));
} | [
"public",
"Map",
"<",
"String",
",",
"ConfigurationMetadataProperty",
">",
"findByProperty",
"(",
"final",
"String",
"name",
")",
"{",
"return",
"find",
"(",
"false",
",",
"RegexUtils",
".",
"createPattern",
"(",
"name",
")",
")",
";",
"}"
] | Find by group.
@param name the name
@return the map | [
"Find",
"by",
"group",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/FindPropertiesCommand.java#L114-L116 |
127,248 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java | AbstractCipherExecutor.extractPrivateKeyFromResource | @SneakyThrows
public static PrivateKey extractPrivateKeyFromResource(final String signingSecretKey) {
LOGGER.debug("Attempting to extract private key...");
val resource = ResourceUtils.getResourceFrom(signingSecretKey);
val factory = new PrivateKeyFactoryBean();
factory.setAlgorithm(... | java | @SneakyThrows
public static PrivateKey extractPrivateKeyFromResource(final String signingSecretKey) {
LOGGER.debug("Attempting to extract private key...");
val resource = ResourceUtils.getResourceFrom(signingSecretKey);
val factory = new PrivateKeyFactoryBean();
factory.setAlgorithm(... | [
"@",
"SneakyThrows",
"public",
"static",
"PrivateKey",
"extractPrivateKeyFromResource",
"(",
"final",
"String",
"signingSecretKey",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Attempting to extract private key...\"",
")",
";",
"val",
"resource",
"=",
"ResourceUtils",
".",... | Extract private key from resource private key.
@param signingSecretKey the signing secret key
@return the private key | [
"Extract",
"private",
"key",
"from",
"resource",
"private",
"key",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java#L49-L58 |
127,249 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java | AbstractCipherExecutor.extractPublicKeyFromResource | @SneakyThrows
public static PublicKey extractPublicKeyFromResource(final String secretKeyToUse) {
LOGGER.debug("Attempting to extract public key from [{}]...", secretKeyToUse);
val resource = ResourceUtils.getResourceFrom(secretKeyToUse);
val factory = new PublicKeyFactoryBean();
fac... | java | @SneakyThrows
public static PublicKey extractPublicKeyFromResource(final String secretKeyToUse) {
LOGGER.debug("Attempting to extract public key from [{}]...", secretKeyToUse);
val resource = ResourceUtils.getResourceFrom(secretKeyToUse);
val factory = new PublicKeyFactoryBean();
fac... | [
"@",
"SneakyThrows",
"public",
"static",
"PublicKey",
"extractPublicKeyFromResource",
"(",
"final",
"String",
"secretKeyToUse",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Attempting to extract public key from [{}]...\"",
",",
"secretKeyToUse",
")",
";",
"val",
"resource",
... | Extract public key from resource public key.
@param secretKeyToUse the secret key to use
@return the public key | [
"Extract",
"public",
"key",
"from",
"resource",
"public",
"key",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java#L66-L75 |
127,250 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java | AbstractCipherExecutor.sign | protected byte[] sign(final byte[] value) {
if (this.signingKey == null) {
return value;
}
if ("RSA".equalsIgnoreCase(this.signingKey.getAlgorithm())) {
return EncodingUtils.signJwsRSASha512(this.signingKey, value);
}
return EncodingUtils.signJwsHMACSha512... | java | protected byte[] sign(final byte[] value) {
if (this.signingKey == null) {
return value;
}
if ("RSA".equalsIgnoreCase(this.signingKey.getAlgorithm())) {
return EncodingUtils.signJwsRSASha512(this.signingKey, value);
}
return EncodingUtils.signJwsHMACSha512... | [
"protected",
"byte",
"[",
"]",
"sign",
"(",
"final",
"byte",
"[",
"]",
"value",
")",
"{",
"if",
"(",
"this",
".",
"signingKey",
"==",
"null",
")",
"{",
"return",
"value",
";",
"}",
"if",
"(",
"\"RSA\"",
".",
"equalsIgnoreCase",
"(",
"this",
".",
"s... | Sign the array by first turning it into a base64 encoded string.
@param value the value
@return the byte [ ] | [
"Sign",
"the",
"array",
"by",
"first",
"turning",
"it",
"into",
"a",
"base64",
"encoded",
"string",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java#L83-L92 |
127,251 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java | AbstractCipherExecutor.configureSigningKey | protected void configureSigningKey(final String signingSecretKey) {
try {
if (ResourceUtils.doesResourceExist(signingSecretKey)) {
configureSigningKeyFromPrivateKeyResource(signingSecretKey);
}
} finally {
if (this.signingKey == null) {
... | java | protected void configureSigningKey(final String signingSecretKey) {
try {
if (ResourceUtils.doesResourceExist(signingSecretKey)) {
configureSigningKeyFromPrivateKeyResource(signingSecretKey);
}
} finally {
if (this.signingKey == null) {
... | [
"protected",
"void",
"configureSigningKey",
"(",
"final",
"String",
"signingSecretKey",
")",
"{",
"try",
"{",
"if",
"(",
"ResourceUtils",
".",
"doesResourceExist",
"(",
"signingSecretKey",
")",
")",
"{",
"configureSigningKeyFromPrivateKeyResource",
"(",
"signingSecretKe... | Sets signing key. If the key provided is resolved as a private key,
then will create use the private key as is, and will sign values
using RSA. Otherwise, AES is used.
@param signingSecretKey the signing secret key | [
"Sets",
"signing",
"key",
".",
"If",
"the",
"key",
"provided",
"is",
"resolved",
"as",
"a",
"private",
"key",
"then",
"will",
"create",
"use",
"the",
"private",
"key",
"as",
"is",
"and",
"will",
"sign",
"values",
"using",
"RSA",
".",
"Otherwise",
"AES",
... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java#L101-L112 |
127,252 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java | AbstractCipherExecutor.configureSigningKeyFromPrivateKeyResource | protected void configureSigningKeyFromPrivateKeyResource(final String signingSecretKey) {
val object = extractPrivateKeyFromResource(signingSecretKey);
LOGGER.trace("Located signing key resource [{}]", signingSecretKey);
setSigningKey(object);
} | java | protected void configureSigningKeyFromPrivateKeyResource(final String signingSecretKey) {
val object = extractPrivateKeyFromResource(signingSecretKey);
LOGGER.trace("Located signing key resource [{}]", signingSecretKey);
setSigningKey(object);
} | [
"protected",
"void",
"configureSigningKeyFromPrivateKeyResource",
"(",
"final",
"String",
"signingSecretKey",
")",
"{",
"val",
"object",
"=",
"extractPrivateKeyFromResource",
"(",
"signingSecretKey",
")",
";",
"LOGGER",
".",
"trace",
"(",
"\"Located signing key resource [{}... | Configure signing key from private key resource.
@param signingSecretKey the signing secret key | [
"Configure",
"signing",
"key",
"from",
"private",
"key",
"resource",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/AbstractCipherExecutor.java#L119-L123 |
127,253 | apereo/cas | support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java | OAuth20DefaultTokenGenerator.generateAccessTokenOAuthDeviceCodeResponseType | protected OAuth20TokenGeneratedResult generateAccessTokenOAuthDeviceCodeResponseType(final AccessTokenRequestDataHolder holder) {
val deviceCode = holder.getDeviceCode();
if (StringUtils.isNotBlank(deviceCode)) {
val deviceCodeTicket = getDeviceTokenFromTicketRegistry(deviceCode);
... | java | protected OAuth20TokenGeneratedResult generateAccessTokenOAuthDeviceCodeResponseType(final AccessTokenRequestDataHolder holder) {
val deviceCode = holder.getDeviceCode();
if (StringUtils.isNotBlank(deviceCode)) {
val deviceCodeTicket = getDeviceTokenFromTicketRegistry(deviceCode);
... | [
"protected",
"OAuth20TokenGeneratedResult",
"generateAccessTokenOAuthDeviceCodeResponseType",
"(",
"final",
"AccessTokenRequestDataHolder",
"holder",
")",
"{",
"val",
"deviceCode",
"=",
"holder",
".",
"getDeviceCode",
"(",
")",
";",
"if",
"(",
"StringUtils",
".",
"isNotBl... | Generate access token OAuth device code response type OAuth token generated result.
@param holder the holder
@return the OAuth token generated result | [
"Generate",
"access",
"token",
"OAuth",
"device",
"code",
"response",
"type",
"OAuth",
"token",
"generated",
"result",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java#L86-L133 |
127,254 | apereo/cas | support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java | OAuth20DefaultTokenGenerator.generateAccessTokenOAuthGrantTypes | protected Pair<AccessToken, RefreshToken> generateAccessTokenOAuthGrantTypes(final AccessTokenRequestDataHolder holder) {
LOGGER.debug("Creating access token for [{}]", holder.getService());
val clientId = holder.getRegisteredService().getClientId();
val authn = DefaultAuthenticationBuilder
... | java | protected Pair<AccessToken, RefreshToken> generateAccessTokenOAuthGrantTypes(final AccessTokenRequestDataHolder holder) {
LOGGER.debug("Creating access token for [{}]", holder.getService());
val clientId = holder.getRegisteredService().getClientId();
val authn = DefaultAuthenticationBuilder
... | [
"protected",
"Pair",
"<",
"AccessToken",
",",
"RefreshToken",
">",
"generateAccessTokenOAuthGrantTypes",
"(",
"final",
"AccessTokenRequestDataHolder",
"holder",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Creating access token for [{}]\"",
",",
"holder",
".",
"getService",
... | Generate access token OAuth grant types pair.
@param holder the holder
@return the pair | [
"Generate",
"access",
"token",
"OAuth",
"grant",
"types",
"pair",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java#L185-L214 |
127,255 | apereo/cas | support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java | OAuth20DefaultTokenGenerator.updateOAuthCode | protected void updateOAuthCode(final AccessTokenRequestDataHolder holder) {
if (holder.getToken() instanceof OAuthCode) {
val codeState = TicketState.class.cast(holder.getToken());
codeState.update();
if (holder.getToken().isExpired()) {
this.ticketRegistry.d... | java | protected void updateOAuthCode(final AccessTokenRequestDataHolder holder) {
if (holder.getToken() instanceof OAuthCode) {
val codeState = TicketState.class.cast(holder.getToken());
codeState.update();
if (holder.getToken().isExpired()) {
this.ticketRegistry.d... | [
"protected",
"void",
"updateOAuthCode",
"(",
"final",
"AccessTokenRequestDataHolder",
"holder",
")",
"{",
"if",
"(",
"holder",
".",
"getToken",
"(",
")",
"instanceof",
"OAuthCode",
")",
"{",
"val",
"codeState",
"=",
"TicketState",
".",
"class",
".",
"cast",
"(... | Update OAuth code.
@param holder the holder | [
"Update",
"OAuth",
"code",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java#L221-L233 |
127,256 | apereo/cas | support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java | OAuth20DefaultTokenGenerator.addTicketToRegistry | protected void addTicketToRegistry(final Ticket ticket, final TicketGrantingTicket ticketGrantingTicket) {
LOGGER.debug("Adding ticket [{}] to registry", ticket);
this.ticketRegistry.addTicket(ticket);
if (ticketGrantingTicket != null) {
LOGGER.debug("Updating parent ticket-granting ... | java | protected void addTicketToRegistry(final Ticket ticket, final TicketGrantingTicket ticketGrantingTicket) {
LOGGER.debug("Adding ticket [{}] to registry", ticket);
this.ticketRegistry.addTicket(ticket);
if (ticketGrantingTicket != null) {
LOGGER.debug("Updating parent ticket-granting ... | [
"protected",
"void",
"addTicketToRegistry",
"(",
"final",
"Ticket",
"ticket",
",",
"final",
"TicketGrantingTicket",
"ticketGrantingTicket",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Adding ticket [{}] to registry\"",
",",
"ticket",
")",
";",
"this",
".",
"ticketRegist... | Add ticket to registry.
@param ticket the ticket
@param ticketGrantingTicket the ticket granting ticket | [
"Add",
"ticket",
"to",
"registry",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java#L241-L248 |
127,257 | apereo/cas | support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java | OAuth20DefaultTokenGenerator.generateRefreshToken | protected RefreshToken generateRefreshToken(final AccessTokenRequestDataHolder responseHolder) {
LOGGER.debug("Creating refresh token for [{}]", responseHolder.getService());
val refreshToken = this.refreshTokenFactory.create(responseHolder.getService(),
responseHolder.getAuthentication(),
... | java | protected RefreshToken generateRefreshToken(final AccessTokenRequestDataHolder responseHolder) {
LOGGER.debug("Creating refresh token for [{}]", responseHolder.getService());
val refreshToken = this.refreshTokenFactory.create(responseHolder.getService(),
responseHolder.getAuthentication(),
... | [
"protected",
"RefreshToken",
"generateRefreshToken",
"(",
"final",
"AccessTokenRequestDataHolder",
"responseHolder",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Creating refresh token for [{}]\"",
",",
"responseHolder",
".",
"getService",
"(",
")",
")",
";",
"val",
"refre... | Generate refresh token.
@param responseHolder the response holder
@return the refresh token | [
"Generate",
"refresh",
"token",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultTokenGenerator.java#L265-L275 |
127,258 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java | AbstractCasWebflowEventResolver.grantTicketGrantingTicketToAuthenticationResult | protected Event grantTicketGrantingTicketToAuthenticationResult(final RequestContext context,
final AuthenticationResultBuilder authenticationResultBuilder,
final Service service) {
... | java | protected Event grantTicketGrantingTicketToAuthenticationResult(final RequestContext context,
final AuthenticationResultBuilder authenticationResultBuilder,
final Service service) {
... | [
"protected",
"Event",
"grantTicketGrantingTicketToAuthenticationResult",
"(",
"final",
"RequestContext",
"context",
",",
"final",
"AuthenticationResultBuilder",
"authenticationResultBuilder",
",",
"final",
"Service",
"service",
")",
"{",
"WebUtils",
".",
"putAuthenticationResul... | Grant ticket granting ticket.
@param context the context
@param authenticationResultBuilder the authentication result builder
@param service the service
@return the event | [
"Grant",
"ticket",
"granting",
"ticket",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java#L93-L99 |
127,259 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java | AbstractCasWebflowEventResolver.putResolvedEventsAsAttribute | protected void putResolvedEventsAsAttribute(final RequestContext context, final Set<Event> resolvedEvents) {
context.getAttributes().put(RESOLVED_AUTHENTICATION_EVENTS, resolvedEvents);
} | java | protected void putResolvedEventsAsAttribute(final RequestContext context, final Set<Event> resolvedEvents) {
context.getAttributes().put(RESOLVED_AUTHENTICATION_EVENTS, resolvedEvents);
} | [
"protected",
"void",
"putResolvedEventsAsAttribute",
"(",
"final",
"RequestContext",
"context",
",",
"final",
"Set",
"<",
"Event",
">",
"resolvedEvents",
")",
"{",
"context",
".",
"getAttributes",
"(",
")",
".",
"put",
"(",
"RESOLVED_AUTHENTICATION_EVENTS",
",",
"... | Put resolved events as attribute.
@param context the context
@param resolvedEvents the resolved events | [
"Put",
"resolved",
"events",
"as",
"attribute",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java#L127-L129 |
127,260 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java | AbstractCasWebflowEventResolver.resolveServiceFromAuthenticationRequest | protected Service resolveServiceFromAuthenticationRequest(final RequestContext context) {
val ctxService = WebUtils.getService(context);
return resolveServiceFromAuthenticationRequest(ctxService);
} | java | protected Service resolveServiceFromAuthenticationRequest(final RequestContext context) {
val ctxService = WebUtils.getService(context);
return resolveServiceFromAuthenticationRequest(ctxService);
} | [
"protected",
"Service",
"resolveServiceFromAuthenticationRequest",
"(",
"final",
"RequestContext",
"context",
")",
"{",
"val",
"ctxService",
"=",
"WebUtils",
".",
"getService",
"(",
"context",
")",
";",
"return",
"resolveServiceFromAuthenticationRequest",
"(",
"ctxService... | Resolve service from authentication request service.
@param context the context
@return the service | [
"Resolve",
"service",
"from",
"authentication",
"request",
"service",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java#L147-L150 |
127,261 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java | AbstractCasWebflowEventResolver.getResolvedEventsAsAttribute | protected Set<Event> getResolvedEventsAsAttribute(final RequestContext context) {
return context.getAttributes().get(RESOLVED_AUTHENTICATION_EVENTS, Set.class);
} | java | protected Set<Event> getResolvedEventsAsAttribute(final RequestContext context) {
return context.getAttributes().get(RESOLVED_AUTHENTICATION_EVENTS, Set.class);
} | [
"protected",
"Set",
"<",
"Event",
">",
"getResolvedEventsAsAttribute",
"(",
"final",
"RequestContext",
"context",
")",
"{",
"return",
"context",
".",
"getAttributes",
"(",
")",
".",
"get",
"(",
"RESOLVED_AUTHENTICATION_EVENTS",
",",
"Set",
".",
"class",
")",
";"... | Gets resolved events as attribute.
@param context the context
@return the resolved events as attribute | [
"Gets",
"resolved",
"events",
"as",
"attribute",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java#L158-L160 |
127,262 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java | AbstractCasWebflowEventResolver.handleAuthenticationTransactionAndGrantTicketGrantingTicket | protected Set<Event> handleAuthenticationTransactionAndGrantTicketGrantingTicket(final RequestContext context) {
val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(context);
try {
val credential = getCredentialFromContext(context);
val builderResult = WebUti... | java | protected Set<Event> handleAuthenticationTransactionAndGrantTicketGrantingTicket(final RequestContext context) {
val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(context);
try {
val credential = getCredentialFromContext(context);
val builderResult = WebUti... | [
"protected",
"Set",
"<",
"Event",
">",
"handleAuthenticationTransactionAndGrantTicketGrantingTicket",
"(",
"final",
"RequestContext",
"context",
")",
"{",
"val",
"response",
"=",
"WebUtils",
".",
"getHttpServletResponseFromExternalWebflowContext",
"(",
"context",
")",
";",
... | Handle authentication transaction and grant ticket granting ticket.
@param context the context
@return the set | [
"Handle",
"authentication",
"transaction",
"and",
"grant",
"ticket",
"granting",
"ticket",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java#L168-L191 |
127,263 | apereo/cas | support/cas-server-support-electrofence/src/main/java/org/apereo/cas/web/flow/RiskAwareAuthenticationWebflowEventResolver.java | RiskAwareAuthenticationWebflowEventResolver.handlePossibleSuspiciousAttempt | protected Set<Event> handlePossibleSuspiciousAttempt(final HttpServletRequest request, final Authentication authentication,
final RegisteredService service) {
getWebflowEventResolutionConfigurationContext().getEventPublisher()
.publishEvent(n... | java | protected Set<Event> handlePossibleSuspiciousAttempt(final HttpServletRequest request, final Authentication authentication,
final RegisteredService service) {
getWebflowEventResolutionConfigurationContext().getEventPublisher()
.publishEvent(n... | [
"protected",
"Set",
"<",
"Event",
">",
"handlePossibleSuspiciousAttempt",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"Authentication",
"authentication",
",",
"final",
"RegisteredService",
"service",
")",
"{",
"getWebflowEventResolutionConfigurationContext",
... | Handle possible suspicious attempt.
@param request the request
@param authentication the authentication
@param service the service
@return the set | [
"Handle",
"possible",
"suspicious",
"attempt",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-electrofence/src/main/java/org/apereo/cas/web/flow/RiskAwareAuthenticationWebflowEventResolver.java#L68-L97 |
127,264 | apereo/cas | support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java | LdapAuthenticationHandler.createPrincipal | protected Principal createPrincipal(final String username, final LdapEntry ldapEntry) throws LoginException {
LOGGER.debug("Creating LDAP principal for [{}] based on [{}] and attributes [{}]", username, ldapEntry.getDn(),
ldapEntry.getAttributeNames());
val id = getLdapPrincipalIdentifier(us... | java | protected Principal createPrincipal(final String username, final LdapEntry ldapEntry) throws LoginException {
LOGGER.debug("Creating LDAP principal for [{}] based on [{}] and attributes [{}]", username, ldapEntry.getDn(),
ldapEntry.getAttributeNames());
val id = getLdapPrincipalIdentifier(us... | [
"protected",
"Principal",
"createPrincipal",
"(",
"final",
"String",
"username",
",",
"final",
"LdapEntry",
"ldapEntry",
")",
"throws",
"LoginException",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Creating LDAP principal for [{}] based on [{}] and attributes [{}]\"",
",",
"userna... | Creates a CAS principal with attributes if the LDAP entry contains principal attributes.
@param username Username that was successfully authenticated which is used for principal ID when principal id is not specified.
@param ldapEntry LDAP entry that may contain principal attributes.
@return Principal if the LDAP entr... | [
"Creates",
"a",
"CAS",
"principal",
"with",
"attributes",
"if",
"the",
"LDAP",
"entry",
"contains",
"principal",
"attributes",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java#L150-L158 |
127,265 | apereo/cas | support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java | LdapAuthenticationHandler.collectAttributesForLdapEntry | protected Map<String, List<Object>> collectAttributesForLdapEntry(final LdapEntry ldapEntry, final String username) {
val attributeMap = Maps.<String, List<Object>>newHashMapWithExpectedSize(this.principalAttributeMap.size());
LOGGER.debug("The following attributes are requested to be retrieved and mapp... | java | protected Map<String, List<Object>> collectAttributesForLdapEntry(final LdapEntry ldapEntry, final String username) {
val attributeMap = Maps.<String, List<Object>>newHashMapWithExpectedSize(this.principalAttributeMap.size());
LOGGER.debug("The following attributes are requested to be retrieved and mapp... | [
"protected",
"Map",
"<",
"String",
",",
"List",
"<",
"Object",
">",
">",
"collectAttributesForLdapEntry",
"(",
"final",
"LdapEntry",
"ldapEntry",
",",
"final",
"String",
"username",
")",
"{",
"val",
"attributeMap",
"=",
"Maps",
".",
"<",
"String",
",",
"List... | Collect attributes for ldap entry.
@param ldapEntry the ldap entry
@param username the username
@return the map | [
"Collect",
"attributes",
"for",
"ldap",
"entry",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java#L167-L193 |
127,266 | apereo/cas | support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java | LdapAuthenticationHandler.getLdapPrincipalIdentifier | protected String getLdapPrincipalIdentifier(final String username, final LdapEntry ldapEntry) throws LoginException {
if (StringUtils.isNotBlank(this.principalIdAttribute)) {
val principalAttr = ldapEntry.getAttribute(this.principalIdAttribute);
if (principalAttr == null || principalAttr... | java | protected String getLdapPrincipalIdentifier(final String username, final LdapEntry ldapEntry) throws LoginException {
if (StringUtils.isNotBlank(this.principalIdAttribute)) {
val principalAttr = ldapEntry.getAttribute(this.principalIdAttribute);
if (principalAttr == null || principalAttr... | [
"protected",
"String",
"getLdapPrincipalIdentifier",
"(",
"final",
"String",
"username",
",",
"final",
"LdapEntry",
"ldapEntry",
")",
"throws",
"LoginException",
"{",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"this",
".",
"principalIdAttribute",
")",
")",
... | Gets ldap principal identifier. If the principal id attribute is defined, it's retrieved.
If no attribute value is found, a warning is generated and the provided username is used instead.
If no attribute is defined, username is used instead.
@param username the username
@param ldapEntry the ldap entry
@return the lda... | [
"Gets",
"ldap",
"principal",
"identifier",
".",
"If",
"the",
"principal",
"id",
"attribute",
"is",
"defined",
"it",
"s",
"retrieved",
".",
"If",
"no",
"attribute",
"value",
"is",
"found",
"a",
"warning",
"is",
"generated",
"and",
"the",
"provided",
"username... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java#L205-L233 |
127,267 | apereo/cas | support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java | LdapAuthenticationHandler.initialize | public void initialize() {
/*
* Use a set to ensure we ignore duplicates.
*/
val attributes = new HashSet<String>();
LOGGER.debug("Initializing LDAP attribute configuration...");
if (StringUtils.isNotBlank(this.principalIdAttribute)) {
LOGGER.debug("Configur... | java | public void initialize() {
/*
* Use a set to ensure we ignore duplicates.
*/
val attributes = new HashSet<String>();
LOGGER.debug("Initializing LDAP attribute configuration...");
if (StringUtils.isNotBlank(this.principalIdAttribute)) {
LOGGER.debug("Configur... | [
"public",
"void",
"initialize",
"(",
")",
"{",
"/*\n * Use a set to ensure we ignore duplicates.\n */",
"val",
"attributes",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"LOGGER",
".",
"debug",
"(",
"\"Initializing LDAP attribute configuration... | Initialize the handler, setup the authentication entry attributes. | [
"Initialize",
"the",
"handler",
"setup",
"the",
"authentication",
"entry",
"attributes",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap/src/main/java/org/apereo/cas/authentication/LdapAuthenticationHandler.java#L238-L262 |
127,268 | apereo/cas | core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/trigger/HttpRequestMultifactorAuthenticationTrigger.java | HttpRequestMultifactorAuthenticationTrigger.resolveEventFromHttpRequest | protected List<String> resolveEventFromHttpRequest(final HttpServletRequest request) {
val mfaRequestHeader = casProperties.getAuthn().getMfa().getRequestHeader();
val headers = request.getHeaders(mfaRequestHeader);
if (headers != null && headers.hasMoreElements()) {
LOGGER.debug("Re... | java | protected List<String> resolveEventFromHttpRequest(final HttpServletRequest request) {
val mfaRequestHeader = casProperties.getAuthn().getMfa().getRequestHeader();
val headers = request.getHeaders(mfaRequestHeader);
if (headers != null && headers.hasMoreElements()) {
LOGGER.debug("Re... | [
"protected",
"List",
"<",
"String",
">",
"resolveEventFromHttpRequest",
"(",
"final",
"HttpServletRequest",
"request",
")",
"{",
"val",
"mfaRequestHeader",
"=",
"casProperties",
".",
"getAuthn",
"(",
")",
".",
"getMfa",
"(",
")",
".",
"getRequestHeader",
"(",
")... | Resolve event from http request.
@param request the request
@return the list | [
"Resolve",
"event",
"from",
"http",
"request",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/trigger/HttpRequestMultifactorAuthenticationTrigger.java#L80-L111 |
127,269 | apereo/cas | core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java | AbstractCentralAuthenticationService.doPublishEvent | protected void doPublishEvent(final ApplicationEvent e) {
if (applicationEventPublisher != null) {
LOGGER.trace("Publishing [{}]", e);
this.applicationEventPublisher.publishEvent(e);
}
} | java | protected void doPublishEvent(final ApplicationEvent e) {
if (applicationEventPublisher != null) {
LOGGER.trace("Publishing [{}]", e);
this.applicationEventPublisher.publishEvent(e);
}
} | [
"protected",
"void",
"doPublishEvent",
"(",
"final",
"ApplicationEvent",
"e",
")",
"{",
"if",
"(",
"applicationEventPublisher",
"!=",
"null",
")",
"{",
"LOGGER",
".",
"trace",
"(",
"\"Publishing [{}]\"",
",",
"e",
")",
";",
"this",
".",
"applicationEventPublishe... | Publish CAS events.
@param e the event | [
"Publish",
"CAS",
"events",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java#L111-L116 |
127,270 | apereo/cas | core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java | AbstractCentralAuthenticationService.getAuthenticationSatisfiedByPolicy | protected Authentication getAuthenticationSatisfiedByPolicy(final Authentication authentication, final ServiceContext context) throws AbstractTicketException {
val policy = this.serviceContextAuthenticationPolicyFactory.createPolicy(context);
try {
if (policy.isSatisfiedBy(authentication)) {... | java | protected Authentication getAuthenticationSatisfiedByPolicy(final Authentication authentication, final ServiceContext context) throws AbstractTicketException {
val policy = this.serviceContextAuthenticationPolicyFactory.createPolicy(context);
try {
if (policy.isSatisfiedBy(authentication)) {... | [
"protected",
"Authentication",
"getAuthenticationSatisfiedByPolicy",
"(",
"final",
"Authentication",
"authentication",
",",
"final",
"ServiceContext",
"context",
")",
"throws",
"AbstractTicketException",
"{",
"val",
"policy",
"=",
"this",
".",
"serviceContextAuthenticationPol... | Gets the authentication satisfied by policy.
@param authentication the authentication
@param context the context
@return the authentication satisfied by policy
@throws AbstractTicketException the ticket exception | [
"Gets",
"the",
"authentication",
"satisfied",
"by",
"policy",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java#L164-L174 |
127,271 | apereo/cas | core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java | AbstractCentralAuthenticationService.evaluateProxiedServiceIfNeeded | protected void evaluateProxiedServiceIfNeeded(final Service service, final TicketGrantingTicket ticketGrantingTicket, final RegisteredService registeredService) {
val proxiedBy = ticketGrantingTicket.getProxiedBy();
if (proxiedBy != null) {
LOGGER.debug("Ticket-granting ticket is proxied by ... | java | protected void evaluateProxiedServiceIfNeeded(final Service service, final TicketGrantingTicket ticketGrantingTicket, final RegisteredService registeredService) {
val proxiedBy = ticketGrantingTicket.getProxiedBy();
if (proxiedBy != null) {
LOGGER.debug("Ticket-granting ticket is proxied by ... | [
"protected",
"void",
"evaluateProxiedServiceIfNeeded",
"(",
"final",
"Service",
"service",
",",
"final",
"TicketGrantingTicket",
"ticketGrantingTicket",
",",
"final",
"RegisteredService",
"registeredService",
")",
"{",
"val",
"proxiedBy",
"=",
"ticketGrantingTicket",
".",
... | Evaluate proxied service if needed.
@param service the service
@param ticketGrantingTicket the ticket granting ticket
@param registeredService the registered service | [
"Evaluate",
"proxied",
"service",
"if",
"needed",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java#L183-L201 |
127,272 | apereo/cas | core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java | AbstractCentralAuthenticationService.verifyTicketState | @Synchronized
protected void verifyTicketState(final Ticket ticket, final String id, final Class clazz) {
if (ticket == null) {
LOGGER.debug("Ticket [{}] by type [{}] cannot be found in the ticket registry.", id, clazz != null ? clazz.getSimpleName() : "unspecified");
throw new Inval... | java | @Synchronized
protected void verifyTicketState(final Ticket ticket, final String id, final Class clazz) {
if (ticket == null) {
LOGGER.debug("Ticket [{}] by type [{}] cannot be found in the ticket registry.", id, clazz != null ? clazz.getSimpleName() : "unspecified");
throw new Inval... | [
"@",
"Synchronized",
"protected",
"void",
"verifyTicketState",
"(",
"final",
"Ticket",
"ticket",
",",
"final",
"String",
"id",
",",
"final",
"Class",
"clazz",
")",
"{",
"if",
"(",
"ticket",
"==",
"null",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Ticket [{}... | Validate ticket expiration policy and throws exception if ticket is no longer valid.
Expired tickets are also deleted from the registry immediately on demand.
@param ticket the ticket
@param id the original id
@param clazz the clazz | [
"Validate",
"ticket",
"expiration",
"policy",
"and",
"throws",
"exception",
"if",
"ticket",
"is",
"no",
"longer",
"valid",
".",
"Expired",
"tickets",
"are",
"also",
"deleted",
"from",
"the",
"registry",
"immediately",
"on",
"demand",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java#L211-L222 |
127,273 | apereo/cas | core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java | AbstractCentralAuthenticationService.isTicketAuthenticityVerified | protected boolean isTicketAuthenticityVerified(final String ticketId) {
if (this.cipherExecutor != null) {
LOGGER.trace("Attempting to decode service ticket [{}] to verify authenticity", ticketId);
return !StringUtils.isEmpty(this.cipherExecutor.decode(ticketId));
}
retur... | java | protected boolean isTicketAuthenticityVerified(final String ticketId) {
if (this.cipherExecutor != null) {
LOGGER.trace("Attempting to decode service ticket [{}] to verify authenticity", ticketId);
return !StringUtils.isEmpty(this.cipherExecutor.decode(ticketId));
}
retur... | [
"protected",
"boolean",
"isTicketAuthenticityVerified",
"(",
"final",
"String",
"ticketId",
")",
"{",
"if",
"(",
"this",
".",
"cipherExecutor",
"!=",
"null",
")",
"{",
"LOGGER",
".",
"trace",
"(",
"\"Attempting to decode service ticket [{}] to verify authenticity\"",
",... | Verify the ticket id received is actually legitimate
before contacting downstream systems to find and process it.
@param ticketId the ticket id
@return true/false | [
"Verify",
"the",
"ticket",
"id",
"received",
"is",
"actually",
"legitimate",
"before",
"contacting",
"downstream",
"systems",
"to",
"find",
"and",
"process",
"it",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core/src/main/java/org/apereo/cas/AbstractCentralAuthenticationService.java#L247-L253 |
127,274 | apereo/cas | support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java | CosmosDbObjectFactory.getDocumentLink | public static String getDocumentLink(final String databaseName, final String collectionName, final String documentId) {
return getCollectionLink(databaseName, collectionName) + "/docs/" + documentId;
} | java | public static String getDocumentLink(final String databaseName, final String collectionName, final String documentId) {
return getCollectionLink(databaseName, collectionName) + "/docs/" + documentId;
} | [
"public",
"static",
"String",
"getDocumentLink",
"(",
"final",
"String",
"databaseName",
",",
"final",
"String",
"collectionName",
",",
"final",
"String",
"documentId",
")",
"{",
"return",
"getCollectionLink",
"(",
"databaseName",
",",
"collectionName",
")",
"+",
... | Gets document link.
@param databaseName the database name
@param collectionName the collection name
@param documentId the document id
@return the document link | [
"Gets",
"document",
"link",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java#L62-L64 |
127,275 | apereo/cas | support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java | CosmosDbObjectFactory.createDocumentClient | public DocumentClient createDocumentClient(final BaseCosmosDbProperties properties) {
val policy = ConnectionPolicy.GetDefault();
var userAgent = (policy.getUserAgentSuffix() == null
? StringUtils.EMPTY
: ';' + policy.getUserAgentSuffix()) + ';' + USER_AGENT_SUFFIX;
if (p... | java | public DocumentClient createDocumentClient(final BaseCosmosDbProperties properties) {
val policy = ConnectionPolicy.GetDefault();
var userAgent = (policy.getUserAgentSuffix() == null
? StringUtils.EMPTY
: ';' + policy.getUserAgentSuffix()) + ';' + USER_AGENT_SUFFIX;
if (p... | [
"public",
"DocumentClient",
"createDocumentClient",
"(",
"final",
"BaseCosmosDbProperties",
"properties",
")",
"{",
"val",
"policy",
"=",
"ConnectionPolicy",
".",
"GetDefault",
"(",
")",
";",
"var",
"userAgent",
"=",
"(",
"policy",
".",
"getUserAgentSuffix",
"(",
... | Create document client.
@param properties the properties
@return the document client | [
"Create",
"document",
"client",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java#L72-L83 |
127,276 | apereo/cas | support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java | CosmosDbObjectFactory.createDocumentDbFactory | public DocumentDbFactory createDocumentDbFactory(final BaseCosmosDbProperties properties) {
val documentClient = createDocumentClient(properties);
return new DocumentDbFactory(documentClient);
} | java | public DocumentDbFactory createDocumentDbFactory(final BaseCosmosDbProperties properties) {
val documentClient = createDocumentClient(properties);
return new DocumentDbFactory(documentClient);
} | [
"public",
"DocumentDbFactory",
"createDocumentDbFactory",
"(",
"final",
"BaseCosmosDbProperties",
"properties",
")",
"{",
"val",
"documentClient",
"=",
"createDocumentClient",
"(",
"properties",
")",
";",
"return",
"new",
"DocumentDbFactory",
"(",
"documentClient",
")",
... | Create document db factory.
@param properties the properties
@return the document db factory | [
"Create",
"document",
"db",
"factory",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java#L91-L94 |
127,277 | apereo/cas | support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java | CosmosDbObjectFactory.createDocumentDbTemplate | public DocumentDbTemplate createDocumentDbTemplate(final DocumentDbFactory documentDbFactory,
final BaseCosmosDbProperties properties) {
val documentDbMappingContext = createDocumentDbMappingContext();
val mappingDocumentDbConverter = createMappingD... | java | public DocumentDbTemplate createDocumentDbTemplate(final DocumentDbFactory documentDbFactory,
final BaseCosmosDbProperties properties) {
val documentDbMappingContext = createDocumentDbMappingContext();
val mappingDocumentDbConverter = createMappingD... | [
"public",
"DocumentDbTemplate",
"createDocumentDbTemplate",
"(",
"final",
"DocumentDbFactory",
"documentDbFactory",
",",
"final",
"BaseCosmosDbProperties",
"properties",
")",
"{",
"val",
"documentDbMappingContext",
"=",
"createDocumentDbMappingContext",
"(",
")",
";",
"val",
... | Create document db template document db template.
@param documentDbFactory the document db factory
@param properties the properties
@return the document db template | [
"Create",
"document",
"db",
"template",
"document",
"db",
"template",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java#L103-L108 |
127,278 | apereo/cas | support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java | CosmosDbObjectFactory.createDocumentDbMappingContext | @SneakyThrows
public DocumentDbMappingContext createDocumentDbMappingContext() {
val documentDbMappingContext = new DocumentDbMappingContext();
documentDbMappingContext.setInitialEntitySet(new EntityScanner(applicationContext).scan(Persistent.class));
return documentDbMappingContext;
} | java | @SneakyThrows
public DocumentDbMappingContext createDocumentDbMappingContext() {
val documentDbMappingContext = new DocumentDbMappingContext();
documentDbMappingContext.setInitialEntitySet(new EntityScanner(applicationContext).scan(Persistent.class));
return documentDbMappingContext;
} | [
"@",
"SneakyThrows",
"public",
"DocumentDbMappingContext",
"createDocumentDbMappingContext",
"(",
")",
"{",
"val",
"documentDbMappingContext",
"=",
"new",
"DocumentDbMappingContext",
"(",
")",
";",
"documentDbMappingContext",
".",
"setInitialEntitySet",
"(",
"new",
"EntityS... | Create document db mapping context.
@return the document db mapping context | [
"Create",
"document",
"db",
"mapping",
"context",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-cosmosdb-core/src/main/java/org/apereo/cas/cosmosdb/CosmosDbObjectFactory.java#L115-L120 |
127,279 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedAuthenticationSAML2ClientLogoutAction.java | DelegatedAuthenticationSAML2ClientLogoutAction.findCurrentClientName | private static String findCurrentClientName(final J2EContext webContext) {
val pm = new ProfileManager<>(webContext, webContext.getSessionStore());
val profile = pm.get(true);
return profile.map(CommonProfile::getClientName).orElse(null);
} | java | private static String findCurrentClientName(final J2EContext webContext) {
val pm = new ProfileManager<>(webContext, webContext.getSessionStore());
val profile = pm.get(true);
return profile.map(CommonProfile::getClientName).orElse(null);
} | [
"private",
"static",
"String",
"findCurrentClientName",
"(",
"final",
"J2EContext",
"webContext",
")",
"{",
"val",
"pm",
"=",
"new",
"ProfileManager",
"<>",
"(",
"webContext",
",",
"webContext",
".",
"getSessionStore",
"(",
")",
")",
";",
"val",
"profile",
"="... | Finds the current client name from the context, using the PAC4J Profile Manager. It is assumed that the context has previously been
populated with the profile.
@param webContext A web context (request + response).
@return The currently used client's name or {@code null} if there is no active profile. | [
"Finds",
"the",
"current",
"client",
"name",
"from",
"the",
"context",
"using",
"the",
"PAC4J",
"Profile",
"Manager",
".",
"It",
"is",
"assumed",
"that",
"the",
"context",
"has",
"previously",
"been",
"populated",
"with",
"the",
"profile",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedAuthenticationSAML2ClientLogoutAction.java#L78-L82 |
127,280 | apereo/cas | support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/web/view/AbstractSaml10ResponseView.java | AbstractSaml10ResponseView.finalizeSamlResponse | protected void finalizeSamlResponse(final HttpServletRequest request, final HttpServletResponse response,
final String serviceId, final Response samlResponse) throws Exception {
if (request != null && response != null) {
LOGGER.debug("Starting to encode SAML r... | java | protected void finalizeSamlResponse(final HttpServletRequest request, final HttpServletResponse response,
final String serviceId, final Response samlResponse) throws Exception {
if (request != null && response != null) {
LOGGER.debug("Starting to encode SAML r... | [
"protected",
"void",
"finalizeSamlResponse",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"HttpServletResponse",
"response",
",",
"final",
"String",
"serviceId",
",",
"final",
"Response",
"samlResponse",
")",
"throws",
"Exception",
"{",
"if",
"(",
"r... | Finalize saml response.
@param request the request
@param response the response
@param serviceId the service id
@param samlResponse the saml response
@throws Exception the exception | [
"Finalize",
"saml",
"response",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/web/view/AbstractSaml10ResponseView.java#L86-L92 |
127,281 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/AopUtils.java | AopUtils.unWrapJoinPoint | public static JoinPoint unWrapJoinPoint(final JoinPoint point) {
var naked = point;
while (naked.getArgs() != null && naked.getArgs().length > 0 && naked.getArgs()[0] instanceof JoinPoint) {
naked = (JoinPoint) naked.getArgs()[0];
}
return naked;
} | java | public static JoinPoint unWrapJoinPoint(final JoinPoint point) {
var naked = point;
while (naked.getArgs() != null && naked.getArgs().length > 0 && naked.getArgs()[0] instanceof JoinPoint) {
naked = (JoinPoint) naked.getArgs()[0];
}
return naked;
} | [
"public",
"static",
"JoinPoint",
"unWrapJoinPoint",
"(",
"final",
"JoinPoint",
"point",
")",
"{",
"var",
"naked",
"=",
"point",
";",
"while",
"(",
"naked",
".",
"getArgs",
"(",
")",
"!=",
"null",
"&&",
"naked",
".",
"getArgs",
"(",
")",
".",
"length",
... | Unwraps a join point that may be nested due to layered proxies.
@param point Join point to unwrap.
@return Innermost join point; if not nested, simply returns the argument. | [
"Unwraps",
"a",
"join",
"point",
"that",
"may",
"be",
"nested",
"due",
"to",
"layered",
"proxies",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/AopUtils.java#L22-L28 |
127,282 | apereo/cas | support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceMetadataHealthIndicator.java | SamlRegisteredServiceMetadataHealthIndicator.doHealthCheck | @Override
protected void doHealthCheck(final Health.Builder builder) {
val samlServices = servicesManager.findServiceBy(registeredService -> registeredService instanceof SamlRegisteredService);
val availableResolvers = this.metadataResolutionPlan.getRegisteredMetadataResolvers();
LOGGER.debu... | java | @Override
protected void doHealthCheck(final Health.Builder builder) {
val samlServices = servicesManager.findServiceBy(registeredService -> registeredService instanceof SamlRegisteredService);
val availableResolvers = this.metadataResolutionPlan.getRegisteredMetadataResolvers();
LOGGER.debu... | [
"@",
"Override",
"protected",
"void",
"doHealthCheck",
"(",
"final",
"Health",
".",
"Builder",
"builder",
")",
"{",
"val",
"samlServices",
"=",
"servicesManager",
".",
"findServiceBy",
"(",
"registeredService",
"->",
"registeredService",
"instanceof",
"SamlRegisteredS... | Check for availability of metadata sources.
Only need 1 valid resolver for metadata to be 'available'.
@param builder the health builder to report back status | [
"Check",
"for",
"availability",
"of",
"metadata",
"sources",
".",
"Only",
"need",
"1",
"valid",
"resolver",
"for",
"metadata",
"to",
"be",
"available",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceMetadataHealthIndicator.java#L35-L64 |
127,283 | apereo/cas | support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/authorization/BaseUseAttributesAuthorizationGenerator.java | BaseUseAttributesAuthorizationGenerator.addProfileRoles | protected void addProfileRoles(final LdapEntry userEntry, final CommonProfile profile,
final LdapAttribute attribute, final String prefix) {
addProfileRolesFromAttributes(profile, attribute, prefix);
} | java | protected void addProfileRoles(final LdapEntry userEntry, final CommonProfile profile,
final LdapAttribute attribute, final String prefix) {
addProfileRolesFromAttributes(profile, attribute, prefix);
} | [
"protected",
"void",
"addProfileRoles",
"(",
"final",
"LdapEntry",
"userEntry",
",",
"final",
"CommonProfile",
"profile",
",",
"final",
"LdapAttribute",
"attribute",
",",
"final",
"String",
"prefix",
")",
"{",
"addProfileRolesFromAttributes",
"(",
"profile",
",",
"a... | Add profile roles.
@param userEntry the user entry
@param profile the profile
@param attribute the attribute
@param prefix the prefix | [
"Add",
"profile",
"roles",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/authorization/BaseUseAttributesAuthorizationGenerator.java#L47-L50 |
127,284 | apereo/cas | support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/authorization/BaseUseAttributesAuthorizationGenerator.java | BaseUseAttributesAuthorizationGenerator.addProfileRolesFromAttributes | protected void addProfileRolesFromAttributes(final CommonProfile profile,
final LdapAttribute ldapAttribute,
final String prefix) {
ldapAttribute.getStringValues().forEach(value -> profile.addRole(prefix.concat(val... | java | protected void addProfileRolesFromAttributes(final CommonProfile profile,
final LdapAttribute ldapAttribute,
final String prefix) {
ldapAttribute.getStringValues().forEach(value -> profile.addRole(prefix.concat(val... | [
"protected",
"void",
"addProfileRolesFromAttributes",
"(",
"final",
"CommonProfile",
"profile",
",",
"final",
"LdapAttribute",
"ldapAttribute",
",",
"final",
"String",
"prefix",
")",
"{",
"ldapAttribute",
".",
"getStringValues",
"(",
")",
".",
"forEach",
"(",
"value... | Add profile roles from attributes.
@param profile the profile
@param ldapAttribute the ldap attribute
@param prefix the prefix | [
"Add",
"profile",
"roles",
"from",
"attributes",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/authorization/BaseUseAttributesAuthorizationGenerator.java#L59-L63 |
127,285 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/BaseOidcJsonWebKeyTokenSigningAndEncryptionService.java | BaseOidcJsonWebKeyTokenSigningAndEncryptionService.signToken | protected String signToken(final OidcRegisteredService svc, final JsonWebSignature jws) throws Exception {
LOGGER.debug("Fetching JSON web key to sign the token for : [{}]", svc.getClientId());
val jsonWebKey = getJsonWebKeySigningKey();
LOGGER.debug("Found JSON web key to sign the token: [{}]",... | java | protected String signToken(final OidcRegisteredService svc, final JsonWebSignature jws) throws Exception {
LOGGER.debug("Fetching JSON web key to sign the token for : [{}]", svc.getClientId());
val jsonWebKey = getJsonWebKeySigningKey();
LOGGER.debug("Found JSON web key to sign the token: [{}]",... | [
"protected",
"String",
"signToken",
"(",
"final",
"OidcRegisteredService",
"svc",
",",
"final",
"JsonWebSignature",
"jws",
")",
"throws",
"Exception",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Fetching JSON web key to sign the token for : [{}]\"",
",",
"svc",
".",
"getClient... | Sign token.
@param svc the svc
@param jws the jws
@return the string
@throws Exception the exception | [
"Sign",
"token",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/BaseOidcJsonWebKeyTokenSigningAndEncryptionService.java#L109-L118 |
127,286 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/BaseOidcJsonWebKeyTokenSigningAndEncryptionService.java | BaseOidcJsonWebKeyTokenSigningAndEncryptionService.getJsonWebKeyForEncryption | protected JsonWebKey getJsonWebKeyForEncryption(final OidcRegisteredService svc) {
LOGGER.debug("Service [{}] is set to encrypt tokens", svc);
val jwks = this.serviceJsonWebKeystoreCache.get(svc);
if (Objects.requireNonNull(jwks).isEmpty()) {
throw new IllegalArgumentException("Servi... | java | protected JsonWebKey getJsonWebKeyForEncryption(final OidcRegisteredService svc) {
LOGGER.debug("Service [{}] is set to encrypt tokens", svc);
val jwks = this.serviceJsonWebKeystoreCache.get(svc);
if (Objects.requireNonNull(jwks).isEmpty()) {
throw new IllegalArgumentException("Servi... | [
"protected",
"JsonWebKey",
"getJsonWebKeyForEncryption",
"(",
"final",
"OidcRegisteredService",
"svc",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Service [{}] is set to encrypt tokens\"",
",",
"svc",
")",
";",
"val",
"jwks",
"=",
"this",
".",
"serviceJsonWebKeystoreCache... | Gets json web key for encryption.
@param svc the svc
@return the json web key for encryption | [
"Gets",
"json",
"web",
"key",
"for",
"encryption",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/BaseOidcJsonWebKeyTokenSigningAndEncryptionService.java#L126-L140 |
127,287 | apereo/cas | support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/MemcachedPooledClientConnectionFactory.java | MemcachedPooledClientConnectionFactory.getObjectPool | public ObjectPool<MemcachedClientIF> getObjectPool() {
val pool = new GenericObjectPool<MemcachedClientIF>(this);
pool.setMaxIdle(memcachedProperties.getMaxIdle());
pool.setMinIdle(memcachedProperties.getMinIdle());
pool.setMaxTotal(memcachedProperties.getMaxTotal());
return pool... | java | public ObjectPool<MemcachedClientIF> getObjectPool() {
val pool = new GenericObjectPool<MemcachedClientIF>(this);
pool.setMaxIdle(memcachedProperties.getMaxIdle());
pool.setMinIdle(memcachedProperties.getMinIdle());
pool.setMaxTotal(memcachedProperties.getMaxTotal());
return pool... | [
"public",
"ObjectPool",
"<",
"MemcachedClientIF",
">",
"getObjectPool",
"(",
")",
"{",
"val",
"pool",
"=",
"new",
"GenericObjectPool",
"<",
"MemcachedClientIF",
">",
"(",
"this",
")",
";",
"pool",
".",
"setMaxIdle",
"(",
"memcachedProperties",
".",
"getMaxIdle",... | Gets object pool.
@return the object pool | [
"Gets",
"object",
"pool",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/MemcachedPooledClientConnectionFactory.java#L93-L99 |
127,288 | apereo/cas | core/cas-server-core-logging/src/main/java/org/apereo/cas/logging/web/LoggingConfigurationEndpoint.java | LoggingConfigurationEndpoint.initialize | public void initialize() {
val pair = buildLoggerContext(environment, resourceLoader);
pair.ifPresent(it -> {
this.logConfigurationFile = it.getKey();
this.loggerContext = it.getValue();
});
} | java | public void initialize() {
val pair = buildLoggerContext(environment, resourceLoader);
pair.ifPresent(it -> {
this.logConfigurationFile = it.getKey();
this.loggerContext = it.getValue();
});
} | [
"public",
"void",
"initialize",
"(",
")",
"{",
"val",
"pair",
"=",
"buildLoggerContext",
"(",
"environment",
",",
"resourceLoader",
")",
";",
"pair",
".",
"ifPresent",
"(",
"it",
"->",
"{",
"this",
".",
"logConfigurationFile",
"=",
"it",
".",
"getKey",
"("... | Init. Attempts to locate the logging configuration to insert listeners.
The log configuration location is pulled directly from the environment
given there is not an explicit property mapping for it provided by Boot, etc. | [
"Init",
".",
"Attempts",
"to",
"locate",
"the",
"logging",
"configuration",
"to",
"insert",
"listeners",
".",
"The",
"log",
"configuration",
"location",
"is",
"pulled",
"directly",
"from",
"the",
"environment",
"given",
"there",
"is",
"not",
"an",
"explicit",
... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logging/src/main/java/org/apereo/cas/logging/web/LoggingConfigurationEndpoint.java#L85-L91 |
127,289 | apereo/cas | core/cas-server-core-logging/src/main/java/org/apereo/cas/logging/web/LoggingConfigurationEndpoint.java | LoggingConfigurationEndpoint.getLoggerConfigurations | private Set<LoggerConfig> getLoggerConfigurations() {
val configuration = this.loggerContext.getConfiguration();
return new HashSet<>(configuration.getLoggers().values());
} | java | private Set<LoggerConfig> getLoggerConfigurations() {
val configuration = this.loggerContext.getConfiguration();
return new HashSet<>(configuration.getLoggers().values());
} | [
"private",
"Set",
"<",
"LoggerConfig",
">",
"getLoggerConfigurations",
"(",
")",
"{",
"val",
"configuration",
"=",
"this",
".",
"loggerContext",
".",
"getConfiguration",
"(",
")",
";",
"return",
"new",
"HashSet",
"<>",
"(",
"configuration",
".",
"getLoggers",
... | Gets logger configurations.
@return the logger configurations | [
"Gets",
"logger",
"configurations",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logging/src/main/java/org/apereo/cas/logging/web/LoggingConfigurationEndpoint.java#L164-L167 |
127,290 | apereo/cas | core/cas-server-core-logging/src/main/java/org/apereo/cas/logging/web/LoggingConfigurationEndpoint.java | LoggingConfigurationEndpoint.updateLoggerLevel | @WriteOperation
public void updateLoggerLevel(@Selector final String loggerName,
final String loggerLevel,
final boolean additive) {
val loggerConfigs = getLoggerConfigurations();
loggerConfigs.stream()
.filter(cfg -> ... | java | @WriteOperation
public void updateLoggerLevel(@Selector final String loggerName,
final String loggerLevel,
final boolean additive) {
val loggerConfigs = getLoggerConfigurations();
loggerConfigs.stream()
.filter(cfg -> ... | [
"@",
"WriteOperation",
"public",
"void",
"updateLoggerLevel",
"(",
"@",
"Selector",
"final",
"String",
"loggerName",
",",
"final",
"String",
"loggerLevel",
",",
"final",
"boolean",
"additive",
")",
"{",
"val",
"loggerConfigs",
"=",
"getLoggerConfigurations",
"(",
... | Looks up the logger in the logger factory,
and attempts to find the real logger instance
based on the underlying logging framework
and retrieve the logger object. Then, updates the level.
This functionality at this point is heavily dependant
on the log4j API.
@param loggerName the logger name
@param loggerLevel the l... | [
"Looks",
"up",
"the",
"logger",
"in",
"the",
"logger",
"factory",
"and",
"attempts",
"to",
"find",
"the",
"real",
"logger",
"instance",
"based",
"on",
"the",
"underlying",
"logging",
"framework",
"and",
"retrieve",
"the",
"logger",
"object",
".",
"Then",
"up... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logging/src/main/java/org/apereo/cas/logging/web/LoggingConfigurationEndpoint.java#L181-L195 |
127,291 | apereo/cas | support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/SamlMetadataDocumentCouchDbRepository.java | SamlMetadataDocumentCouchDbRepository.findFirstByName | @View(name = "by_name", map = "function(doc) { if(doc.name && doc.value) { emit(doc.name, doc) } }")
public CouchDbSamlMetadataDocument findFirstByName(final String name) {
val view = createQuery("by_name").key(name).limit(1);
return db.queryView(view, CouchDbSamlMetadataDocument.class).stream().fin... | java | @View(name = "by_name", map = "function(doc) { if(doc.name && doc.value) { emit(doc.name, doc) } }")
public CouchDbSamlMetadataDocument findFirstByName(final String name) {
val view = createQuery("by_name").key(name).limit(1);
return db.queryView(view, CouchDbSamlMetadataDocument.class).stream().fin... | [
"@",
"View",
"(",
"name",
"=",
"\"by_name\"",
",",
"map",
"=",
"\"function(doc) { if(doc.name && doc.value) { emit(doc.name, doc) } }\"",
")",
"public",
"CouchDbSamlMetadataDocument",
"findFirstByName",
"(",
"final",
"String",
"name",
")",
"{",
"val",
"view",
"=",
"crea... | Find by name.
@param name name to search for
@return SAML metadata | [
"Find",
"by",
"name",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/SamlMetadataDocumentCouchDbRepository.java#L25-L29 |
127,292 | apereo/cas | support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/authentication/principal/OpenIdServiceResponseBuilder.java | OpenIdServiceResponseBuilder.build | @Override
public Response build(final WebApplicationService webApplicationService, final String ticketId, final Authentication authentication) {
val service = (OpenIdService) webApplicationService;
val parameterList = new ParameterList(HttpRequestUtils.getHttpServletRequestFromRequestAttributes().g... | java | @Override
public Response build(final WebApplicationService webApplicationService, final String ticketId, final Authentication authentication) {
val service = (OpenIdService) webApplicationService;
val parameterList = new ParameterList(HttpRequestUtils.getHttpServletRequestFromRequestAttributes().g... | [
"@",
"Override",
"public",
"Response",
"build",
"(",
"final",
"WebApplicationService",
"webApplicationService",
",",
"final",
"String",
"ticketId",
",",
"final",
"Authentication",
"authentication",
")",
"{",
"val",
"service",
"=",
"(",
"OpenIdService",
")",
"webAppl... | Generates an Openid response.
If no ticketId is found, response is negative.
If we have a ticket id, then we check if we have an association.
If so, we ask OpenId server manager to generate the answer according with the existing association.
If not, we send back an answer with the ticket id as association handle.
This ... | [
"Generates",
"an",
"Openid",
"response",
".",
"If",
"no",
"ticketId",
"is",
"found",
"response",
"is",
"negative",
".",
"If",
"we",
"have",
"a",
"ticket",
"id",
"then",
"we",
"check",
"if",
"we",
"have",
"an",
"association",
".",
"If",
"so",
"we",
"ask... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/authentication/principal/OpenIdServiceResponseBuilder.java#L64-L99 |
127,293 | apereo/cas | support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/authentication/principal/OpenIdServiceResponseBuilder.java | OpenIdServiceResponseBuilder.determineIdentity | protected String determineIdentity(final OpenIdService service, final Assertion assertion) {
if (assertion != null && OpenIdProtocolConstants.OPENID_IDENTIFIERSELECT.equals(service.getIdentity())) {
return this.openIdPrefixUrl + '/' + assertion.getPrimaryAuthentication().getPrincipal().getId();
... | java | protected String determineIdentity(final OpenIdService service, final Assertion assertion) {
if (assertion != null && OpenIdProtocolConstants.OPENID_IDENTIFIERSELECT.equals(service.getIdentity())) {
return this.openIdPrefixUrl + '/' + assertion.getPrimaryAuthentication().getPrincipal().getId();
... | [
"protected",
"String",
"determineIdentity",
"(",
"final",
"OpenIdService",
"service",
",",
"final",
"Assertion",
"assertion",
")",
"{",
"if",
"(",
"assertion",
"!=",
"null",
"&&",
"OpenIdProtocolConstants",
".",
"OPENID_IDENTIFIERSELECT",
".",
"equals",
"(",
"servic... | Determine identity.
@param service the service
@param assertion the assertion
@return the string | [
"Determine",
"identity",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/authentication/principal/OpenIdServiceResponseBuilder.java#L108-L113 |
127,294 | apereo/cas | support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/authentication/principal/OpenIdServiceResponseBuilder.java | OpenIdServiceResponseBuilder.getAssociation | protected Association getAssociation(final ServerManager serverManager, final ParameterList parameterList) {
try {
val authReq = AuthRequest.createAuthRequest(parameterList, serverManager.getRealmVerifier());
val parameterMap = authReq.getParameterMap();
if (parameterMap != n... | java | protected Association getAssociation(final ServerManager serverManager, final ParameterList parameterList) {
try {
val authReq = AuthRequest.createAuthRequest(parameterList, serverManager.getRealmVerifier());
val parameterMap = authReq.getParameterMap();
if (parameterMap != n... | [
"protected",
"Association",
"getAssociation",
"(",
"final",
"ServerManager",
"serverManager",
",",
"final",
"ParameterList",
"parameterList",
")",
"{",
"try",
"{",
"val",
"authReq",
"=",
"AuthRequest",
".",
"createAuthRequest",
"(",
"parameterList",
",",
"serverManage... | Gets association.
@param serverManager the server manager
@param parameterList the parameter list
@return the association | [
"Gets",
"association",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/authentication/principal/OpenIdServiceResponseBuilder.java#L148-L162 |
127,295 | apereo/cas | support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/TicketGrantingTicketResource.java | TicketGrantingTicketResource.deleteTicketGrantingTicket | @DeleteMapping(value = "/v1/tickets/{tgtId:.+}")
public ResponseEntity<String> deleteTicketGrantingTicket(@PathVariable("tgtId") final String tgtId) {
this.centralAuthenticationService.destroyTicketGrantingTicket(tgtId);
return new ResponseEntity<>(tgtId, HttpStatus.OK);
} | java | @DeleteMapping(value = "/v1/tickets/{tgtId:.+}")
public ResponseEntity<String> deleteTicketGrantingTicket(@PathVariable("tgtId") final String tgtId) {
this.centralAuthenticationService.destroyTicketGrantingTicket(tgtId);
return new ResponseEntity<>(tgtId, HttpStatus.OK);
} | [
"@",
"DeleteMapping",
"(",
"value",
"=",
"\"/v1/tickets/{tgtId:.+}\"",
")",
"public",
"ResponseEntity",
"<",
"String",
">",
"deleteTicketGrantingTicket",
"(",
"@",
"PathVariable",
"(",
"\"tgtId\"",
")",
"final",
"String",
"tgtId",
")",
"{",
"this",
".",
"centralAu... | Destroy ticket granting ticket.
@param tgtId ticket granting ticket id URI path param
@return {@link ResponseEntity} representing RESTful response. Signals
{@link HttpStatus#OK} when successful. | [
"Destroy",
"ticket",
"granting",
"ticket",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/TicketGrantingTicketResource.java#L86-L90 |
127,296 | apereo/cas | support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/TicketGrantingTicketResource.java | TicketGrantingTicketResource.createResponseEntityForTicket | protected ResponseEntity<String> createResponseEntityForTicket(final HttpServletRequest request,
final TicketGrantingTicket tgtId) throws Exception {
return this.ticketGrantingTicketResourceEntityResponseFactory.build(tgtId, request);
} | java | protected ResponseEntity<String> createResponseEntityForTicket(final HttpServletRequest request,
final TicketGrantingTicket tgtId) throws Exception {
return this.ticketGrantingTicketResourceEntityResponseFactory.build(tgtId, request);
} | [
"protected",
"ResponseEntity",
"<",
"String",
">",
"createResponseEntityForTicket",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"TicketGrantingTicket",
"tgtId",
")",
"throws",
"Exception",
"{",
"return",
"this",
".",
"ticketGrantingTicketResourceEntityRespo... | Create response entity for ticket response entity.
@param request the request
@param tgtId the tgt id
@return the response entity
@throws Exception the exception | [
"Create",
"response",
"entity",
"for",
"ticket",
"response",
"entity",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/TicketGrantingTicketResource.java#L100-L103 |
127,297 | apereo/cas | support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/TicketGrantingTicketResource.java | TicketGrantingTicketResource.createTicketGrantingTicketForRequest | protected TicketGrantingTicket createTicketGrantingTicketForRequest(final MultiValueMap<String, String> requestBody,
final HttpServletRequest request) {
val credential = this.credentialFactory.fromRequest(request, requestBody);
if (... | java | protected TicketGrantingTicket createTicketGrantingTicketForRequest(final MultiValueMap<String, String> requestBody,
final HttpServletRequest request) {
val credential = this.credentialFactory.fromRequest(request, requestBody);
if (... | [
"protected",
"TicketGrantingTicket",
"createTicketGrantingTicketForRequest",
"(",
"final",
"MultiValueMap",
"<",
"String",
",",
"String",
">",
"requestBody",
",",
"final",
"HttpServletRequest",
"request",
")",
"{",
"val",
"credential",
"=",
"this",
".",
"credentialFacto... | Create ticket granting ticket for request ticket granting ticket.
@param requestBody the request body
@param request the request
@return the ticket granting ticket | [
"Create",
"ticket",
"granting",
"ticket",
"for",
"request",
"ticket",
"granting",
"ticket",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/TicketGrantingTicketResource.java#L112-L122 |
127,298 | apereo/cas | support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/jasypt/JasyptDecryptPropertyCommand.java | JasyptDecryptPropertyCommand.decryptValue | @ShellMethod(key = "decrypt-value", value = "Encrypt a CAS property value/setting via Jasypt")
public void decryptValue(
@ShellOption(value = {"value"},
help = "Value to encrypt") final String value,
@ShellOption(value = {"alg"},
help = "Algorithm to use to encrypt") final St... | java | @ShellMethod(key = "decrypt-value", value = "Encrypt a CAS property value/setting via Jasypt")
public void decryptValue(
@ShellOption(value = {"value"},
help = "Value to encrypt") final String value,
@ShellOption(value = {"alg"},
help = "Algorithm to use to encrypt") final St... | [
"@",
"ShellMethod",
"(",
"key",
"=",
"\"decrypt-value\"",
",",
"value",
"=",
"\"Encrypt a CAS property value/setting via Jasypt\"",
")",
"public",
"void",
"decryptValue",
"(",
"@",
"ShellOption",
"(",
"value",
"=",
"{",
"\"value\"",
"}",
",",
"help",
"=",
"\"Value... | Decrypt a value using Jasypt.
@param value the value
@param alg the alg
@param provider the provider
@param password the password
@param iterations the iterations | [
"Decrypt",
"a",
"value",
"using",
"Jasypt",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/jasypt/JasyptDecryptPropertyCommand.java#L39-L63 |
127,299 | apereo/cas | core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/handler/support/AbstractUsernamePasswordAuthenticationHandler.java | AbstractUsernamePasswordAuthenticationHandler.transformPassword | protected void transformPassword(final UsernamePasswordCredential userPass) throws FailedLoginException, AccountNotFoundException {
if (StringUtils.isBlank(userPass.getPassword())) {
throw new FailedLoginException("Password is null.");
}
LOGGER.debug("Attempting to encode credential ... | java | protected void transformPassword(final UsernamePasswordCredential userPass) throws FailedLoginException, AccountNotFoundException {
if (StringUtils.isBlank(userPass.getPassword())) {
throw new FailedLoginException("Password is null.");
}
LOGGER.debug("Attempting to encode credential ... | [
"protected",
"void",
"transformPassword",
"(",
"final",
"UsernamePasswordCredential",
"userPass",
")",
"throws",
"FailedLoginException",
",",
"AccountNotFoundException",
"{",
"if",
"(",
"StringUtils",
".",
"isBlank",
"(",
"userPass",
".",
"getPassword",
"(",
")",
")",... | Transform password.
@param userPass the user pass
@throws FailedLoginException the failed login exception
@throws AccountNotFoundException the account not found exception | [
"Transform",
"password",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/handler/support/AbstractUsernamePasswordAuthenticationHandler.java#L79-L89 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.