public interface JCoServerSecurityHandler
JCoServer
instance.SecurityHandler
Modifier and Type | Method and Description |
---|---|
default JCoServerUserContext |
authenticate(JCoServerContextInfo serverCtxInfo,
JCoServerAuthenticationData... authenticationData)
This method will be invoked by the JCo runtime for each new session which is established.
|
default void |
checkAuthentication(JCoServerContextInfo serverCtxInfo,
JCoServerAuthenticationData... authenticationData)
Deprecated.
Will be removed in a future release without further notice. This method has been replaced by method
authenticate(JCoServerContextInfo serverCtxInfo, JCoServerAuthenticationData... authenticationData)
whose implementation will be mandatory in a future release. |
default void |
checkAuthorization(JCoServerContextInfo serverCtxInfo,
JCoServerUserContext userContext,
String functionName)
This method will be invoked by the JCo runtime on each remote function call.
|
default void |
checkAuthorization(JCoServerContext serverCtx,
String functionName,
JCoServerAuthorizationData authorizationData)
Deprecated.
Will be removed in a future release without further notice. This method has been replaced by method
checkAuthorization(JCoServerContextInfo, JCoServerUserContext, String) whose implementation
will be mandatory in a future release. |
@MandatoryInFuture default JCoServerUserContext authenticate(JCoServerContextInfo serverCtxInfo, JCoServerAuthenticationData... authenticationData) throws JCoServerAuthenticationException
Note: WebSocket RFC server connections are stateful by default, and CPIC-based registered RFC server connections are stateless by default.
serverCtxInfo
- remote function call related server context informationauthenticationData
- authentication data sent from the remote system or null, if no data is providedJCoServerAuthenticationException
- if the user does not have access to the associated server instance@Deprecated default void checkAuthentication(JCoServerContextInfo serverCtxInfo, JCoServerAuthenticationData... authenticationData) throws JCoApplicationAuthenticationException
authenticate(JCoServerContextInfo serverCtxInfo, JCoServerAuthenticationData... authenticationData)
whose implementation will be mandatory in a future release.
Note: This method is obsolete and won't be invoked anymore, if the replacement method
authenticate(JCoServerContextInfo serverCtxInfo, JCoServerAuthenticationData... authenticationData)
has been implemented.
serverCtxInfo
- remote function call related server context informationauthenticationData
- authentication data sent from the remote system or null, if no data is providedJCoApplicationAuthenticationException
- if the user does not have access to the associated server instance@MandatoryInFuture default void checkAuthorization(JCoServerContextInfo serverCtxInfo, JCoServerUserContext userContext, String functionName) throws JCoServerAuthorizationException
JCoServerUserContext
is the object, which was previously returned by method authenticate(JCoServerContextInfo, JCoServerAuthenticationData...)
for the current session.serverCtxInfo
- remote function call related server context informationuserContext
- the user context of the successfully authenticated user in the current session, or null if
the security handler does not have a user managementfunctionName
- name of the function module which is about to be invokedJCoServerAuthorizationException
- if the user does not have the authorization to execute the function@Deprecated default void checkAuthorization(JCoServerContext serverCtx, String functionName, JCoServerAuthorizationData authorizationData) throws JCoApplicationAuthorizationException
checkAuthorization(JCoServerContextInfo, JCoServerUserContext, String)
whose implementation
will be mandatory in a future release.
Note: This method is obsolete and won't be invoked anymore, if the replacement method
checkAuthorization(JCoServerContextInfo, JCoServerUserContext, String)
has been implemented.
serverCtx
- remote function call related server contextfunctionName
- name of the function module which is about to be invokedauthorizationData
- authorization data sent from the remote systemJCoApplicationAuthorizationException
- if the user does not have the authorization to execute the functionCopyright © 2025 SAP. All rights reserved.