public class org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint extends java.lang.Object implements org.springframework.security.web.AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
{
public static final java.lang.String SAVED_CONTEXT;
private static final org.slf4j.Logger LOG;
private org.springframework.context.ApplicationContext appContext;
private org.apache.cxf.fediz.spring.FederationConfig federationConfig;
private org.apache.cxf.fediz.core.handler.RequestHandler requestHandler;
public void <init>()
{
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public org.apache.cxf.fediz.core.handler.RequestHandler getRequestHandler()
{
org.apache.cxf.fediz.core.handler.RequestHandler v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.core.handler.RequestHandler requestHandler>;
return v;
}
public void setRequestHandler(org.apache.cxf.fediz.core.handler.RequestHandler)
{
org.apache.cxf.fediz.core.handler.RequestHandler v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v := @parameter: org.apache.cxf.fediz.core.handler.RequestHandler;
v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.core.handler.RequestHandler requestHandler> = v;
return;
}
public org.apache.cxf.fediz.spring.FederationConfig getFederationConfig()
{
org.apache.cxf.fediz.spring.FederationConfig v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.spring.FederationConfig federationConfig>;
return v;
}
public void setFederationConfig(org.apache.cxf.fediz.spring.FederationConfig)
{
org.apache.cxf.fediz.spring.FederationConfig v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v := @parameter: org.apache.cxf.fediz.spring.FederationConfig;
v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.spring.FederationConfig federationConfig> = v;
return;
}
public void afterPropertiesSet() throws java.lang.Exception
{
org.springframework.context.ApplicationContext v;
org.apache.cxf.fediz.spring.FederationConfig v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.springframework.context.ApplicationContext appContext>;
staticinvoke <org.springframework.util.Assert: void notNull(java.lang.Object,java.lang.String)>(v, "ApplicationContext cannot be null.");
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.spring.FederationConfig federationConfig>;
staticinvoke <org.springframework.util.Assert: void notNull(java.lang.Object,java.lang.String)>(v, "FederationConfig cannot be null.");
return;
}
public void commence(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.security.core.AuthenticationException) throws java.io.IOException, javax.servlet.ServletException
{
javax.servlet.ServletException v, v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
org.apache.cxf.fediz.core.RequestState v;
java.util.Map v;
org.apache.cxf.fediz.core.processor.FedizProcessor v;
org.springframework.security.core.AuthenticationException v;
boolean v, v, v, v, v;
javax.servlet.http.HttpSession v;
java.util.Set v;
org.apache.cxf.fediz.core.handler.RequestHandler v, v, v;
java.lang.Throwable v;
javax.servlet.http.HttpServletRequest v;
org.apache.cxf.fediz.spring.FederationConfig v;
org.apache.cxf.fediz.core.processor.RedirectionResponse v;
java.lang.String v, v, v, v;
org.apache.cxf.fediz.core.metadata.MetadataDocumentHandler v;
org.apache.cxf.fediz.core.config.FedizContext v;
org.slf4j.Logger v, v, v, v, v;
java.util.Iterator v;
javax.servlet.http.HttpServletResponse v;
java.lang.Object v, v, v;
org.apache.cxf.fediz.core.config.Protocol v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v := @parameter: javax.servlet.http.HttpServletRequest;
v := @parameter: javax.servlet.http.HttpServletResponse;
v := @parameter: org.springframework.security.core.AuthenticationException;
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.spring.FederationConfig federationConfig>;
v = interfaceinvoke v.<org.apache.cxf.fediz.spring.FederationConfig: org.apache.cxf.fediz.core.config.FedizContext getFedizContext()>();
v = <org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object)>("Federation context: {}", v);
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.core.handler.RequestHandler requestHandler>;
if v == null goto label;
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.core.handler.RequestHandler requestHandler>;
v = interfaceinvoke v.<org.apache.cxf.fediz.core.handler.RequestHandler: boolean canHandleRequest(javax.servlet.http.HttpServletRequest)>(v);
if v == 0 goto label;
v = v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.apache.cxf.fediz.core.handler.RequestHandler requestHandler>;
interfaceinvoke v.<org.apache.cxf.fediz.core.handler.RequestHandler: java.lang.Object handleRequest(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)>(v, v);
return;
label:
v = new org.apache.cxf.fediz.core.metadata.MetadataDocumentHandler;
specialinvoke v.<org.apache.cxf.fediz.core.metadata.MetadataDocumentHandler: void <init>(org.apache.cxf.fediz.core.config.FedizContext)>(v);
v = virtualinvoke v.<org.apache.cxf.fediz.core.metadata.MetadataDocumentHandler: boolean canHandleRequest(javax.servlet.http.HttpServletRequest)>(v);
if v == 0 goto label;
virtualinvoke v.<org.apache.cxf.fediz.core.metadata.MetadataDocumentHandler: java.lang.Boolean handleRequest(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)>(v, v);
return;
label:
v = virtualinvoke v.<org.apache.cxf.fediz.core.config.FedizContext: org.apache.cxf.fediz.core.config.Protocol getProtocol()>();
v = staticinvoke <org.apache.cxf.fediz.core.processor.FedizProcessorFactory: org.apache.cxf.fediz.core.processor.FedizProcessor newFedizProcessor(org.apache.cxf.fediz.core.config.Protocol)>(v);
v = interfaceinvoke v.<org.apache.cxf.fediz.core.processor.FedizProcessor: org.apache.cxf.fediz.core.processor.RedirectionResponse createSignInRequest(javax.servlet.http.HttpServletRequest,org.apache.cxf.fediz.core.config.FedizContext)>(v, v);
v = virtualinvoke v.<org.apache.cxf.fediz.core.processor.RedirectionResponse: java.lang.String getRedirectionURL()>();
if v != null goto label;
v = <org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String)>("Failed to create SignInRequest. Redirect URL null");
v = new javax.servlet.ServletException;
specialinvoke v.<javax.servlet.ServletException: void <init>(java.lang.String)>("Failed to create SignInRequest. Redirect URL null");
throw v;
label:
v = virtualinvoke v.<org.apache.cxf.fediz.core.processor.RedirectionResponse: java.util.Map getHeaders()>();
v = interfaceinvoke v.<java.util.Map: boolean isEmpty()>();
if v != 0 goto label;
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getValue()>();
interfaceinvoke v.<javax.servlet.http.HttpServletResponse: void addHeader(java.lang.String,java.lang.String)>(v, v);
goto label;
label:
v = interfaceinvoke v.<javax.servlet.http.HttpServletRequest: javax.servlet.http.HttpSession getSession(boolean)>(1);
v = virtualinvoke v.<org.apache.cxf.fediz.core.processor.RedirectionResponse: org.apache.cxf.fediz.core.RequestState getRequestState()>();
interfaceinvoke v.<javax.servlet.http.HttpSession: void setAttribute(java.lang.String,java.lang.Object)>("SAVED_CONTEXT", v);
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String,java.lang.Throwable)>("Failed to create SignInRequest", v);
v = new javax.servlet.ServletException;
v = virtualinvoke v.<org.apache.cxf.fediz.core.exception.ProcessingException: java.lang.String getMessage()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Failed to create SignInRequest: \u0001");
specialinvoke v.<javax.servlet.ServletException: void <init>(java.lang.String)>(v);
throw v;
label:
virtualinvoke v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: void preCommence(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)>(v, v);
v = <org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isInfoEnabled()>();
if v == 0 goto label;
v = <org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.slf4j.Logger LOG>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Redirecting to IDP: \u0001");
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>(v);
label:
interfaceinvoke v.<javax.servlet.http.HttpServletResponse: void sendRedirect(java.lang.String)>(v);
return;
catch org.apache.cxf.fediz.core.exception.ProcessingException from label to label with label;
}
protected void preCommence(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
{
javax.servlet.http.HttpServletResponse v;
javax.servlet.http.HttpServletRequest v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v := @parameter: javax.servlet.http.HttpServletRequest;
v := @parameter: javax.servlet.http.HttpServletResponse;
return;
}
public void setApplicationContext(org.springframework.context.ApplicationContext)
{
org.springframework.context.ApplicationContext v;
org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint v;
v := @this: org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint;
v := @parameter: org.springframework.context.ApplicationContext;
v.<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.springframework.context.ApplicationContext appContext> = v;
return;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/cxf/fediz/spring/web/FederationAuthenticationEntryPoint;");
<org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint: org.slf4j.Logger LOG> = v;
return;
}
}