Class ContextPropagatingRemoteInvocation
java.lang.Object
org.springframework.remoting.support.RemoteInvocation
org.springframework.security.remoting.rmi.ContextPropagatingRemoteInvocation
- All Implemented Interfaces:
Serializable
@Deprecated
public class ContextPropagatingRemoteInvocation
extends org.springframework.remoting.support.RemoteInvocation
Deprecated.
as of 5.6.0 with no replacement
The actual
RemoteInvocation that is passed from the client to the server.
The principal and credentials information will be extracted from the current security context and passed to the server as part of the invocation object.
To avoid potential serialization-based attacks, this implementation interprets the
values as Strings and creates a UsernamePasswordAuthenticationToken on
the server side to hold them. If a different token type is required you can override
the createAuthenticationRequest method.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContextPropagatingRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation) Deprecated.Constructs the object, storing the principal and credentials extracted from the client-side security context. -
Method Summary
Modifier and TypeMethodDescriptionprotected AuthenticationcreateAuthenticationRequest(String principal, String credentials) Deprecated.Creates the server-side authentication request object.Deprecated.Invoked on the server-side.Methods inherited from class org.springframework.remoting.support.RemoteInvocation
addAttribute, getArguments, getAttribute, getAttributes, getMethodName, getParameterTypes, setArguments, setAttributes, setMethodName, setParameterTypes, toString
-
Constructor Details
-
ContextPropagatingRemoteInvocation
public ContextPropagatingRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation) Deprecated.Constructs the object, storing the principal and credentials extracted from the client-side security context.- Parameters:
methodInvocation- the method to invoke
-
-
Method Details
-
invoke
public Object invoke(Object targetObject) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException Deprecated.Invoked on the server-side.The transmitted principal and credentials will be used to create an unauthenticated
Authenticationinstance for processing by theAuthenticationManager.- Overrides:
invokein classorg.springframework.remoting.support.RemoteInvocation- Parameters:
targetObject- the target object to apply the invocation to- Returns:
- the invocation result
- Throws:
NoSuchMethodException- if the method name could not be resolvedIllegalAccessException- if the method could not be accessedInvocationTargetException- if the method invocation resulted in an exception
-
createAuthenticationRequest
Deprecated.Creates the server-side authentication request object.
-