WeaveKeyId

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
static String
describeKey(int keyId)
static int
static int
getEpochKeyId(int keyId)
static int
getKeyType(int keyId)
static int
getRootKeyId(int keyId)
static boolean
static boolean
static boolean
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

繼承方法摘要

常數

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