例如,CLASP为开发人员提供了一个安全代码指南的例子。
For instance, CLASP provides an example set of secure coding guidelines for developers.
Jt框架还使用声明安全性来避免编写易出错的安全代码。
The Jt framework also uses declarative security which avoids the need for error-prone security coding.
支持测试工具,这样可以很容易的对Shiro的安全代码进行单元测试和集成测试。
Test harness support, making it very easy to have full testing of Shiro secured-code in unit and integration tests.
要是您想用一小块线程安全代码把要求同步的两个操作隔开,那么只使用一个同步块一般会更好些。
If you have two operations that require synchronization separated by a small block of thread-safe code, you are generally better just using a single synchronized block.
您不需要编写任何特定安全代码(即使在安全环境中),因为这个插件将在WSRR应用程序内部运行,从WSRR继承安全凭据。
You don't need to write any specific code for security, even in a secure environment, because this plug-in runs within the WSRR application and inherits security credentials from WSRR.
我们需要自定义通过w3概要分析cookie来识别用户的安全代码,并通过WebSpherePortal安全模型来集成。
We needed to customize the security code that identified users by a w3 profiling cookie to integrate it with the WebSphere Portal security model.
单元测试可以提供最重要的安全屏障,允许您按照自己的意愿重构代码库。
Unit tests represent the primary safety net that allows you to refactor your code base at will.
要编写安全的代码,必须首先了解您的应用面临的威胁。
To write secure code, you must first understand the threats to which your work is exposed.
因此,横切关注点(如日志、事务和安全)不会再干扰应用程序代码。
As a result, crosscutting concerns like logging, transactions, and security no longer intrude on your application code.
另一种是找到确保软件开发人员编写的代码中有更少的缺陷的方法,这样黑客就有更少的安全漏洞可以利用。
Another is to find ways to ensure that software developers produce code with fewer flaws in it so that hackers have fewer security holes to exploit.
CWE还为程序员提供了编写更安全的代码所需要的更详细的内容。
CWE also provides more details needed for programmers to write more secure code.
为了更好地支持安全移动代码保障,MIDP 2.0还将正式包含无线下载(OTA)保障规范。
To better support secure mobile code provision, MIDP 2.0 will also formally include an over-the-air (OTA) provisioning specification.
这种方法根本不会产生安全的代码,因为您无法创建足够多的测试来涵盖攻击者能做到的所有稀奇古怪的事情。
That approach simply won't produce secure code, because you can't create enough tests to represent all the odd things an attacker can do.
现在UI是安全的,代码也得到简化,因为任务分解成了工作线程内完成的部分和UI线程内完成的部分。
Now the UI is safe and the code is simpler, because it separates the work into the part that should be done on a worker thread and the part that should be done on the UI thread.
从表面上看,锁省略似乎可以允许我们不必忍受同步带来的负担,就可以编写线程安全的代码了,前提是在同步的确是多余的情况下。
On the surface it looks as though lock elision allows us to write thread safe code without any synchronization penalty for using in cases where it really wasn't needed.
从清单6中可以看出,我们再次利用泛型来使所有这些代码类型安全。
As you can see in Listing 6, generics are once again leveraged to make all of this code type safe.
最后,清单14中的代码负责安全删除解密文本文件,从而去除任何存储在磁盘上的纯文本信息。
Finally the code in Listing 14 handles the secure deletion of the decrypted text file to remove any clear text information stored on disk.
至少某些开发和评审代码的人必须知道如何编写安全的程序。
At least some of the people developing and reviewing the code must know how to write secure programs.
为了保证安全,日志操作需要保证不受信的代码无法修改日志控制配置。
The principal security requirement is that untrusted code should not be able to change the logging configuration.
在启动后,安全代理内部的随需应变配置代码将读取静态路由文件并构建内存路由数据。
At startup, the on demand configuration code inside the secure proxy reads the static route file and builds the in-memory routing data.
我的理解是,当出现这类约束时,开发人员通常会放弃J2EE安全而开始自己编写代码。
My understanding is that when such constraints appear, developers typically abandon J2EE security and start writing code for themselves.
这个合约不允许该方法抛出运行时异常(防止因违反泛型类型安全而成为调用代码中的bug)。
That contract does not allow this method to throw a run-time exception (barring violations of generic type safety that qualify as bugs in the calling code).
与usernametoken示例一样,可以不使用cxf - client .xml文件,而是在客户机代码中配置安全参数。
Just as in the UsernameToken example, you can configure the security parameters in your client code as an alternative to using a cxf-client.xml file.
清单3中的eval语句将执行服务器返回的所有代码,因此这里存在安全风险。
The eval statement in Listing 3 will execute whatever code the server returns, so there is a security risk here.
此外,由于采用了新的方式对字节码进行校验,我们还能确保编译的代码在运行时的类型安全。
Furthermore, due to a novel approach to bytecode verification, we're also able to ensure runtime type safety of the compiled code.
Google的代码搜索所暗含的安全问题与其网站搜索引擎带来的问题类似。
The security implications of Google's Code search resemble those raised by its original Web search engine.
通过几行代码,我在云中创建了一个安全资产,该资产只能通过特殊的URL下载。
With a few lines of code, I've created a secure asset in the cloud that can only be downloaded with a special URL.
JBoss曾经有一个概念是EJB的SecurityProxy,您可以在其中提供EJB业务接口的实现,该实现可以在代码中执行这些安全检查。
JBoss used to have a concept of SecurityProxy for EJBs, where you could provide an implementation of the EJB business interface that could execute these security checks in code.
JBoss曾经有一个概念是EJB的SecurityProxy,您可以在其中提供EJB业务接口的实现,该实现可以在代码中执行这些安全检查。
JBoss used to have a concept of SecurityProxy for EJBs, where you could provide an implementation of the EJB business interface that could execute these security checks in code.
应用推荐