简体   繁体   English

ABAP中授权对象和对象类之间的区别?

[英]Difference between Authorization Object and an Object Class in ABAP?

I've been a Java developer having a limited knowledge about ABAP.我是一名 Java 开发人员,对 ABAP 的了解有限。

While trying to understand the SAP Authorization concept, I came across the terms Authorization Objects and an Object Class.在尝试理解 SAP 授权概念时,我遇到了授权对象和对象类这两个术语。

Now as per my understanding of Object Oriented concepts, an Object is a run time instance of a Class.现在,根据我对面向对象概念的理解,对象是类的运行时实例。

So I'm a bit confused with the term ABAP Objects and an Object Class.所以我对术语 ABAP 对象和对象类有点困惑。

Can someone please answer my following questions:有人可以回答我的以下问题:

  1. What is the meaning of the term "Object Class" in ABAP? ABAP 中术语“对象类”是什么意思?

  2. What does Authorization Object mean?授权对象是什么意思? Since objects are created at run time, how can we create an object at design time?既然对象是在运行时创建的,那么我们如何在设计时创建对象呢?

Any replies will be of great help.任何回复都会有很大帮助。

Well, I've found this nice link which explains very well the concepts.好吧,我找到了这个很好的链接,它很好地解释了这些概念。

The main idea is: in SAP, you will hear the term "class" and "object" being used a lot.主要思想是:在 SAP 中,您会听到经常使用的术语“类”和“对象”。 They don't mean anything like the concepts from OO.它们的含义与 OO 中的概念不同。 An authorization class is just a general description of "what you're allowed to do", whereas an authorization object is a more particular description of that.授权类只是对“您可以做什么”的一般描述,而授权对象是对此的更具体描述。

Authorization objects can be used programmatically to check if a user has the right to "x"... and as a DEV, you can forget to check for them, which can cause security issues :).可以以编程方式使用授权对象来检查用户是否有权“x”……而作为 DEV,您可能会忘记检查它们,这可能会导致安全问题:)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将授权对象存储到会话? - store authorization object to session? 检查 ActiveDirectory Object 的授权 - Check Authorization on ActiveDirectory Object 保留授权对象 - Retaining an authorization object 应用程序权限和oauth2授权之间有什么区别? - What’s the difference between application permissions and oauth2 authorization? Keycloak授权:将角色添加到域对象或实体 - Keycloak authorization: Adding a Role to a domain object or an entity Spring Security 上下文中的身份验证和授权有什么区别? - What is the difference between authentication and authorization in context of Spring Security? 基于配置文件和目标对象的Ruby授权 - Ruby authorization based on profile and target object 在非对象 - 授权上调用成员函数allow() - Call to a member function allow() on a non-object - authorization Laravel-对用户和对象都属于某物的策略授权 - Laravel - Policy authorization on user and object that both belong to something 使用授权方法和新附加参数有什么区别:Header 中的 accessToken? - What difference between using Authorization method and new attached param: accessToken in Header?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM