• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ConfidentialityException类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中gnu.javax.crypto.sasl.ConfidentialityException的典型用法代码示例。如果您正苦于以下问题:Java ConfidentialityException类的具体用法?Java ConfidentialityException怎么用?Java ConfidentialityException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ConfidentialityException类属于gnu.javax.crypto.sasl包,在下文中一共展示了ConfidentialityException类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: doFinal

点赞 2

import gnu.javax.crypto.sasl.ConfidentialityException; //导入依赖的package包/类
/**
 * Encrypts or decrypts, depending on the mode already set, a designated array
 * of bytes and returns the result.
 *
 * @param data the data to encrypt/decrypt.
 * @param offset where to start in <code>data</code>.
 * @param length how many bytes to consider in <code>data</code>.
 * @return the decrypted/encrypted result.
 * @throws ConfidentialityException if an exception occurs duirng the process.
 */
public byte[] doFinal(final byte[] data, final int offset, final int length)
    throws ConfidentialityException
{
  final byte[] result;
  try
    {
      result = assembly.lastUpdate(data, offset, length);
    }
  catch (TransformerException x)
    {
      throw new ConfidentialityException("doFinal()", x);
    }
  return result;
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:25,
代码来源:CALG.java

示例2: doFinal

点赞 2

import gnu.javax.crypto.sasl.ConfidentialityException; //导入依赖的package包/类
/**
 * Encrypts or decrypts, depending on the mode already set, a designated array
 * of bytes and returns the result.
 * 
 * @param data the data to encrypt/decrypt.
 * @param offset where to start in <code>data</code>.
 * @param length how many bytes to consider in <code>data</code>.
 * @return the decrypted/encrypted result.
 * @throws ConfidentialityException if an exception occurs duirng the process.
 */
public byte[] doFinal(final byte[] data, final int offset, final int length)
    throws ConfidentialityException
{
  final byte[] result;
  try
    {
      result = assembly.lastUpdate(data, offset, length);
    }
  catch (TransformerException x)
    {
      throw new ConfidentialityException("doFinal()", x);
    }
  return result;
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:25,
代码来源:CALG.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)