public final class WeaveKeyId extends Object
用于处理 WeaveKeyId 的实用方法和定义。
常量摘要
| int | ClientRootKey | |
| int | FabricRootKey | |
| int | FabricSecret | |
| int | 无 | |
| int | ServiceRootKey | |
| int | kKeyType_AppEpochKey | |
| int | kKeyType_AppGroupMasterKey | |
| int | kKeyType_AppIntermediateKey | |
| int | kKeyType_AppRootKey | |
| int | kKeyType_AppRotatingKey | |
| int | kKeyType_AppStaticKey | |
| int | kKeyType_General | |
| int | kKeyType_None | |
| int | kKeyType_Session |
公共构造函数摘要
公共方法摘要
| static int |
convertToStaticAppKeyId(int keyId)
|
| 静态字符串 |
describeKey(int keyId)
|
| static int |
getAppGroupMasterKeyId(int keyId)
|
| static int |
getEpochKeyId(int keyId)
|
| static int |
getKeyType(int keyId)
|
| static int |
getRootKeyId(int keyId)
|
| static boolean |
incorporatesAppGroupMasterKey(int keyId)
|
| static boolean |
incorporatesEpochKey(int keyId)
|
| static boolean |
incorporatesRootKey(int keyId)
|
| static boolean |
isValid(int keyId)
|
| static int |
makeAppGroupMasterKeyId(int appGroupMasterKeyLocalId)
|
| static int |
makeAppKeyId(int keyType, int rootKeyId, int epochKeyId, int
appGroupMasterKeyId, boolean useCurrentEpochKey)
|
| static int |
makeAppRotatingKeyId(int rootKeyId, int epochKeyId, int
appGroupMasterKeyId, boolean useCurrentEpochKey)
|
| static int |
makeAppStaticKeyId(int rootKeyId, int appGroupMasterKeyId)
|
| static int |
makeEpochKeyId(int epochKeyNumber)
|
| static int |
makeRootKeyId(int rootKeyNumber)
|
| static int |
updateEpochKey(int keyId, int epochKeyId)
|
| static boolean |
usesCurrentEpochKey(int keyId)
|
继承的方法摘要
常量
public static final int ClientRootKey
常量值: 66560
public static final int FabricRootKey
常量值: 65536
public static final int FabricSecret
常量值: 4097
public static final int None
常量值: 0
public static final int ServiceRootKey
常量值: 67584
public static final int kKeyType_AppEpochKey
常量值: 135168
public static final int kKeyType_AppGroupMasterKey
常量值: 196608
public static final int kKeyType_AppIntermediateKey
常量值: 69632
public static final int kKeyType_AppRootKey
常量值: 65536
public static final int kKeyType_AppRotatingKey
常量值: 20480
public static final int kKeyType_AppStaticKey
常量值: 16384
public static final int kKeyType_General
常量值: 4096
public static final int kKeyType_None
常量值: 0
public static final int kKeyType_Session
常量值: 8192
公共构造函数
public WeaveKeyId ()
公共方法
public static int convertToStaticAppKeyId (int keyId)
参数
| keyId |
|---|
public static String describeKey (int keyId)
参数
| keyId |
|---|
public static int getAppGroupMasterKeyId (int keyId)
参数
| keyId |
|---|
public static int getEpochKeyId (int keyId)
参数
| keyId |
|---|
public static int getKeyType (int keyId)
参数
| keyId |
|---|
public static int getRootKeyId (int keyId)
参数
| keyId |
|---|
public static boolean incorporatesAppGroupMasterKey (int keyId)
参数
| keyId |
|---|
public static boolean incorporatesEpochKey (int keyId)
参数
| keyId |
|---|
public static boolean incorporatesRootKey (int keyId)
参数
| keyId |
|---|
public static boolean isValid (int keyId)
参数
| keyId |
|---|
public static int makeAppGroupMasterKeyId (int appGroupMasterKeyLocalId)
参数
| appGroupMasterKeyLocalId |
|---|
public static int makeAppKeyId (int keyType, int rootKeyId, int epochKeyId, int appGroupMasterKeyId, boolean useCurrentEpochKey)
参数
| keyType | |
|---|---|
| rootKeyId | |
| epochKeyId | |
| appGroupMasterKeyId | |
| useCurrentEpochKey |
public static int makeAppRotatingKeyId (int rootKeyId, int epochKeyId, int appGroupMasterKeyId, boolean useCurrentEpochKey)
参数
| rootKeyId | |
|---|---|
| epochKeyId | |
| appGroupMasterKeyId | |
| useCurrentEpochKey |
public static int makeAppStaticKeyId (int rootKeyId, int appGroupMasterKeyId)
参数
| rootKeyId | |
|---|---|
| appGroupMasterKeyId |
public static int makeEpochKeyId (int epochKeyNumber)
参数
| epochKeyNumber |
|---|
public static int makeRootKeyId (int rootKeyNumber)
参数
| rootKeyNumber |
|---|
public static int updateEpochKey (int keyId, int epochKeyId)
参数
| keyId | |
|---|---|
| epochKeyId |
public static boolean usesCurrentEpochKey (int keyId)
参数
| keyId |
|---|