JavaTM Platform
Standard Ed. 6

javax.crypto
类 NullCipher

java.lang.Object
  继承者 javax.crypto.Cipher
      继承者 javax.crypto.NullCipher

public class NullCipher
     
extends Cipher

NullCipher 类是一个提供“标识密码”的类,其不转换纯文本。因此,密码文本与纯文本相同。将块大小设置为 1 个字节时,所有初始化方法都不执行任何操作。

从以下版本开始:
1.4

字段摘要
 
从类 javax.crypto.Cipher 继承的字段
DECRYPT_MODE, ENCRYPT_MODE, PRIVATE_KEY, PUBLIC_KEY, SECRET_KEY, UNWRAP_MODE, WRAP_MODE
 
构造方法摘要
NullCipher()
           
 
方法摘要
 
从类 javax.crypto.Cipher 继承的方法
doFinal, doFinal, doFinal, doFinal, doFinal, doFinal, doFinal, getAlgorithm, getBlockSize, getExemptionMechanism, getInstance, getInstance, getInstance, getIV, getMaxAllowedKeyLength, getMaxAllowedParameterSpec, getOutputSize, getParameters, getProvider, init, init, init, init, init, init, init, init, unwrap, update, update, update, update, update, wrap
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

NullCipher

public NullCipher()

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策