xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Key类 参考
Key 的协作图:
Collaboration graph

Public 成员函数

静态 Public 属性

详细描述

Key类是一个用于表示和处理密钥的类,提供了多种密钥类型和操作方法

在文件 Key.x4 行定义.

成员函数说明

◆ create()

bool create ( )

创建密钥

返回
创建成功返回true,否则返回false

◆ finalize()

void finalize ( )

◆ getAlgorithm()

String getAlgorithm ( )

◆ getData()

byte [] getData ( )

◆ getFormat()

String getFormat ( )

◆ getParam()

Object getParam ( String  )

获取密钥参数

参数
param参数名称
返回
参数值,不为null

◆ keyType()

int keyType ( )

◆ length()

int length ( )

◆ load() [1/2]

bool load ( byte  [],
int  ,
int  ,
  String 
)

◆ load() [2/2]

bool load ( String  ,
  String 
)

◆ setParam()

void setParam ( String  ,
  Object 
)

设置密钥参数

参数
param参数名称
value参数值

◆ translateKey()

Key translateKey ( Key  ,
  Object 
)

结构体成员变量说明

◆ PRIVATE_KEY

const int PRIVATE_KEY
static

在文件 Key.x8 行定义.

◆ PUBLIC_KEY

const int PUBLIC_KEY
static

在文件 Key.x7 行定义.

◆ RSA_BITS

const String RSA_BITS
static

在文件 Key.x19 行定义.

◆ RSA_e

const String RSA_e
static

在文件 Key.x20 行定义.

◆ RSA_E_17

const int RSA_E_17
static

在文件 Key.x14 行定义.

◆ RSA_E_3

const int RSA_E_3
static

在文件 Key.x13 行定义.

◆ RSA_E_F4

const int RSA_E_F4
static

在文件 Key.x15 行定义.

◆ SECRET_KEY

const int SECRET_KEY
static

在文件 Key.x9 行定义.