目录

CryptoObject

Class Info

public static final class CryptoObject

密码操作类,用于传输密码相关信息。

Public Constructor Summary

Constructor Name

CryptoObject(Signature signature)

使用已有的Signature来创建CryptoObject。

CryptoObject(Cipher cipher)

使用已有的Cipher来创建CryptoObject。

CryptoObject(Mac mac)

使用已有的Mac来创建CryptoObject。

Public Method Summary

Qualifier and Type

Method Name and Description

Signature

getSignature()

获取Signature对象。

Cipher

getCipher()

获取Cipher对象。

Mac

getMac()

获取Mac对象。

Public Constructors

[h2]CryptoObject(Signature signature)

Constructor

public CryptoObject(Signature signature)

使用已有的Signature来创建CryptoObject。

Parameters

Name

Description

signature

Signature对象。

[h2]CryptoObject(Cipher cipher)

Constructor

public CryptoObject(Cipher cipher)

使用已有的Cipher来创建CryptoObject。

Parameters

Name

Description

cipher

Cipher对象。

[h2]CryptoObject(Mac mac)

Constructor

public CryptoObject(Mac mac)

使用已有的Mac来创建CryptoObject。

Parameters

Name

Description

mac

Mac对象。

Public Methods

[h2]getSignature

Method

public Signature getSignature()

获取Signature对象。

Returns

Type

Description

Signature

Signature对象。

[h2]getCipher

Method

public Cipher getCipher()

获取Cipher对象。

Returns

Type

Description

Cipher

Cipher对象。

[h2]getMac

Method

public CryptoObject getCryptoObject()

获取Mac对象。

Returns

Type

Description

Mac

Mac对象。