WeaveKeyId

public final class WeaveKeyId extends Object

Utility methods and definitions for working with WeaveKeyIds.

Constant Summary

int ClientRootKey
int FabricRootKey
int FabricSecret
int None
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

Public Constructor Summary

Public Method Summary

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

Inherited Method Summary

Constants

public static final int ClientRootKey

Constant Value: 66560

public static final int FabricRootKey

Constant Value: 65536

public static final int FabricSecret

Constant Value: 4097

public static final int None

Constant Value: 0

public static final int ServiceRootKey

Constant Value: 67584

public static final int kKeyType_AppEpochKey

Constant Value: 135168

public static final int kKeyType_AppGroupMasterKey

Constant Value: 196608

public static final int kKeyType_AppIntermediateKey

Constant Value: 69632

public static final int kKeyType_AppRootKey

Constant Value: 65536

public static final int kKeyType_AppRotatingKey

Constant Value: 20480

public static final int kKeyType_AppStaticKey

Constant Value: 16384

public static final int kKeyType_General

Constant Value: 4096

public static final int kKeyType_None

Constant Value: 0

public static final int kKeyType_Session

Constant Value: 8192

Public Constructors

public WeaveKeyId ()

Public Methods

public static int convertToStaticAppKeyId (int keyId)

Parameters
keyId

public static String describeKey (int keyId)

Parameters
keyId

public static int getAppGroupMasterKeyId (int keyId)

Parameters
keyId

public static int getEpochKeyId (int keyId)

Parameters
keyId

public static int getKeyType (int keyId)

Parameters
keyId

public static int getRootKeyId (int keyId)

Parameters
keyId

public static boolean incorporatesAppGroupMasterKey (int keyId)

Parameters
keyId

public static boolean incorporatesEpochKey (int keyId)

Parameters
keyId

public static boolean incorporatesRootKey (int keyId)

Parameters
keyId

public static boolean isValid (int keyId)

Parameters
keyId

public static int makeAppGroupMasterKeyId (int appGroupMasterKeyLocalId)

Parameters
appGroupMasterKeyLocalId

public static int makeAppKeyId (int keyType, int rootKeyId, int epochKeyId, int appGroupMasterKeyId, boolean useCurrentEpochKey)

Parameters
keyType
rootKeyId
epochKeyId
appGroupMasterKeyId
useCurrentEpochKey

public static int makeAppRotatingKeyId (int rootKeyId, int epochKeyId, int appGroupMasterKeyId, boolean useCurrentEpochKey)

Parameters
rootKeyId
epochKeyId
appGroupMasterKeyId
useCurrentEpochKey

public static int makeAppStaticKeyId (int rootKeyId, int appGroupMasterKeyId)

Parameters
rootKeyId
appGroupMasterKeyId

public static int makeEpochKeyId (int epochKeyNumber)

Parameters
epochKeyNumber

public static int makeRootKeyId (int rootKeyNumber)

Parameters
rootKeyNumber

public static int updateEpochKey (int keyId, int epochKeyId)

Parameters
keyId
epochKeyId

public static boolean usesCurrentEpochKey (int keyId)

Parameters
keyId