SCEA之路--10. Security

Java Applet安全限制与特性实现
博客强调安全并非100%可靠,需多层面保障且应融入设计。介绍了Java 2技术环境对浏览器中运行的Applet的安全限制,如代码使用、文件读写、网络连接等方面。还阐述了根据架构系统规范确定安全特性实现位置及适用技术,包括认证和授权相关内容。

General.
• nothing is 100% secure
• only as strong as the weakest link (e2e security requires many layers)
• manageable (a complex system will only serve to confuse admins/users)
• security must be included as part of the design not retro-fitted

Identify Security Restrictions That Java 2 Technology Environments Normally Impose on Applets Running in a Browser
• An applet can utilize only its own code and is not allowed to load libraries or define native methods.
• An applet cannot read or write files on the host that is executing it.
• An applet can make network connections only to the host from which it was downloaded.
• An applet cannot start any program on the local host.
• An applet is restricted from reading the following system properties:
java.home, java.class.path, user.name, user.home, and user.dir.

Given an Architectural System Specification, Identify Appropriate Locations for Implementation of Specified Security Features and Select Suitable Technologies for Implementation of Those Features
• Authentication
    • Authentication method: BASIC, FORM, DIGEST, and CLIENT-CERT
    • Digital certificates, certificate authorities
    • Secure Sockets Layer (SSL)
    • Common Secure Interoperability (CSIv2)
    • Identity selection: <run-as> or <use-caller-identity>
    • Security roles
• Authorization
    • Authorization enforced by the container (declarative), defined in the deployment descriptor
    • Authorization enforced by the component (programmatic), defined within the application code

以下是输入指令后的输出结果 Intern25_2@79d153e3ced3:/$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7EA0A9C3F273FCD8 Executing: /tmp/apt-key-gpghome.bedViBYqEr/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7EA0A9C3F273FCD8 gpg: key 8D81803C0EBFCD88: 1 duplicate signature removed gpg: key 8D81803C0EBFCD88: "Docker Release (CE deb) <docker@docker.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 Intern25_2@79d153e3ced3:/$ sudo rm -f /etc/apt/sources.list.d/docker*.list Intern25_2@79d153e3ced3:/$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable Intern25_2@79d153e3ced3:/$ sudo apt update Hit:1 http://mirrors.aliyun.com/ubuntu focal InRelease Hit:2 http://mirrors.aliyun.com/ubuntu focal-security InRelease Hit:3 http://mirrors.aliyun.com/ubuntu focal-updates InRelease Get:4 https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal InRelease [57.7 kB] Hit:5 http://mirrors.aliyun.com/ubuntu focal-backports InRelease Hit:6 http://mirrors.aliyun.com/ubuntu focal-proposed InRelease Ign:8 https://download.docker.com/linux/ubuntu focal InRelease Hit:7 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease Get:9 https://download.docker.com/linux/ubuntu focal Release [56.8 kB] Get:10 https://download.docker.com/linux/ubuntu focal Release.gpg [801 B] Ign:10 https://download.docker.com/linux/ubuntu focal Release.gpg Reading package lists... Done N: Ignoring file 'docker.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension W: GPG error: https://download.docker.com/linux/ubuntu focal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 E: The repository 'https://download.docker.com/linux/ubuntu focal Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Intern25_2@79d153e3ced3:/$ sudo apt update 2>&1 | grep -i "7EA0A9C3F273FCD8" The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 W: GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 Intern25_2@79d153e3ced3:/$
最新发布
11-21
yousatech@Rack-Server:~$ gpg --show-keys /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg pub rsa4096 2017-02-22 [SCEA] 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 uid Docker Release (CE deb) <docker@docker.com> sub rsa4096 2017-02-22 [S] yousatech@Rack-Server:~$ echo "deb [arch=$(dpkg --print-architecture)] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | \ sudo tee /etc/apt/sources.list.d/docker.list deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu jammy stable yousatech@Rack-Server:~$ sudo apt update Hit:1 https://mirrors.aliyun.com/docker-ce/linux/ubuntu jammy InRelease Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Err:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease 403 Forbidden [IP: 101.6.15.130 80] Err:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease 403 Forbidden [IP: 101.6.15.130 80] Err:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease 403 Forbidden [IP: 101.6.15.130 80] Reading package lists... Done N: See apt-secure(8) manpage for repository creation and user configuration details. N: Updating from such a repository can't be done securely, and is therefore disabled by default. E: The repository 'http://cn.archive.ubuntu.com/ubuntu jammy InRelease' is no longer signed. E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/jammy/InRelease 403 Forbidden [IP: 101.6.15.130 80] E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease 403 Forbidden [IP: 101.6.15.130 80] E: The repository 'http://cn.archive.ubuntu.com/ubuntu jammy-updates InRelease' is no longer signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease 403 Forbidden [IP: 101.6.15.130 80] E: The repository 'http://cn.archive.ubuntu.com/ubuntu jammy-backports InRelease' is no longer signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
11-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值