public final class WeaveKeyId extends Object
Các phương thức và định nghĩa tiện ích để làm việc với WeaveKeyId.
Tóm tắt hằng số
int | ClientRootKey | |
int | FabricRootKey | |
int | FabricSecret | |
int | None (Không có) | |
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 |
Tóm tắt hàm khởi tạo công khai
Tóm tắt phương thức công khai
static int |
convertToStaticAppKeyId(int keyId)
|
chuỗi tĩnh |
describeKey(int keyId)
|
static int |
getAppGroupMasterKeyId(int keyId)
|
static int |
getEpochKeyId(int keyId)
|
static int |
getKeyType(int keyId)
|
static int |
getRootKeyId(int keyId)
|
boolean tĩnh |
incorporatesAppGroupMasterKey(int keyId)
|
boolean tĩnh |
incorporatesEpochKey(int keyId)
|
boolean tĩnh |
incorporatesRootKey(int keyId)
|
boolean tĩnh |
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)
|
boolean tĩnh |
usesCurrentEpochKey(int keyId)
|
Tóm tắt phương thức kế thừa
Hằng số
public static final int ClientRootKey
Giá trị không đổi: 66560
public static final int FabricRootKey
Giá trị hằng số: 65536
public static final int FabricSecret
Giá trị hằng số: 4097
public static final int None
Giá trị hằng số: 0
public static final int ServiceRootKey
Giá trị hằng số: 67584
public static final int kKeyType_AppEpochKey
Giá trị hằng số: 135168
public static final int kKeyType_AppGroupMasterKey
Giá trị hằng số: 196608
public static final int kKeyType_AppIntermediateKey
Giá trị hằng số: 69632
public static final int kKeyType_AppRootKey
Giá trị hằng số: 65536
public static final int kKeyType_AppRotatingKey
Giá trị hằng số: 20480
public static final int kKeyType_AppStaticKey
Giá trị hằng số: 16384
public static final int kKeyType_General
Giá trị hằng số: 4096
public static final int kKeyType_None
Giá trị hằng số: 0
public static final int kKeyType_Session
Giá trị hằng số: 8192
Hàm khởi tạo công khai
public WeaveKeyId ()
Phương thức công khai
public static int convertToStaticAppKeyId (int keyId)
Thông số
keyId |
---|
public static String describeKey (int keyId)
Thông số
keyId |
---|
public static int getAppGroupMasterKeyId (int keyId)
Thông số
keyId |
---|
public static int getEpochKeyId (int keyId)
Thông số
keyId |
---|
public static int getKeyType (int keyId)
Thông số
keyId |
---|
public static int getRootKeyId (int keyId)
Thông số
keyId |
---|
public static boolean incorporatesAppGroupMasterKey (int keyId)
Thông số
keyId |
---|
public static boolean incorporatesEpochKey (int keyId)
Thông số
keyId |
---|
public static boolean incorporatesRootKey (int keyId)
Thông số
keyId |
---|
public static boolean isValid (int keyId)
Thông số
keyId |
---|
public static int makeAppGroupMasterKeyId (int appGroupMasterKeyLocalId)
Thông số
appGroupMasterKeyLocalId |
---|
public static int makeAppKeyId (int keyType, int rootKeyId, int epochKeyId, int appGroupMasterKeyId, boolean useCurrentEpochKey)
Thông số
keyType | |
---|---|
rootKeyId | |
epochKeyId | |
appGroupMasterKeyId | |
useCurrentEpochKey |
public static int makeAppRotatingKeyId (int rootKeyId, int epochKeyId, int appGroupMasterKeyId, boolean useCurrentEpochKey)
Thông số
rootKeyId | |
---|---|
epochKeyId | |
appGroupMasterKeyId | |
useCurrentEpochKey |
public static int makeAppStaticKeyId (int rootKeyId, int appGroupMasterKeyId)
Thông số
rootKeyId | |
---|---|
appGroupMasterKeyId |
public static int makeEpochKeyId (int epochKeyNumber)
Thông số
epochKeyNumber |
---|
public static int makeRootKeyId (int rootKeyNumber)
Thông số
rootKeyNumber |
---|
public static int updateEpochKey (int keyId, int epochKeyId)
Thông số
keyId | |
---|---|
epochKeyId |
public static boolean usesCurrentEpochKey (int keyId)
Thông số
keyId |
---|