net.named_data.jndn.security.identity
public abstract class Sqlite3IdentityStorageBase extends IdentityStorage
Constructor and Description |
---|
Sqlite3IdentityStorageBase() |
Modifier and Type | Method and Description |
---|---|
void |
activateKey(Name keyName)
Activate a key.
|
protected void |
checkSetDefaultKeyNameForIdentity(Name keyName,
Name identityNameCheck)
Throw an exception if it is an error for setDefaultKeyNameForIdentity to
set it.
|
void |
deactivateKey(Name keyName)
Deactivate a key.
|
protected abstract void |
updateKeyStatus(Name keyName,
boolean isActive)
In table Key, set 'active' to isActive for the keyName.
|
addCertificate, addIdentity, addKey, deleteCertificateInfo, deleteIdentityInfo, deletePublicKeyInfo, doesCertificateExist, doesIdentityExist, doesKeyExist, getAllCertificateNamesOfKey, getAllIdentities, getAllKeyNamesOfIdentity, getCertificate, getDefaultCertificate, getDefaultCertificateNameForIdentity, getDefaultCertificateNameForKey, getDefaultIdentity, getDefaultKeyNameForIdentity, getKey, getNewKeyName, revokeIdentity, setDefaultCertificateNameForKey, setDefaultIdentity, setDefaultKeyNameForIdentity, setDefaultKeyNameForIdentity
protected static final String SELECT_MASTER_ID_TABLE
protected static final String SELECT_MASTER_KEY_TABLE
protected static final String SELECT_MASTER_CERT_TABLE
protected static final String INIT_ID_TABLE1
protected static final String INIT_ID_TABLE2
protected static final String INIT_KEY_TABLE1
protected static final String INIT_KEY_TABLE2
protected static final String INIT_CERT_TABLE1
protected static final String INIT_CERT_TABLE2
protected static final String INIT_CERT_TABLE3
protected static final String SELECT_doesIdentityExist
protected static final String SELECT_doesKeyExist
protected static final String SELECT_getKey
protected static final String SELECT_doesCertificateExist
protected static final String SELECT_getCertificate
protected static final String SELECT_getDefaultIdentity
protected static final String SELECT_getDefaultKeyNameForIdentity
protected static final String SELECT_getDefaultCertificateNameForKey
protected static final String SELECT_getAllIdentities_default_true
protected static final String SELECT_getAllIdentities_default_false
protected static final String SELECT_getAllKeyNamesOfIdentity_default_true
protected static final String SELECT_getAllKeyNamesOfIdentity_default_false
protected static final String SELECT_getAllCertificateNamesOfKey_default_true
protected static final String SELECT_getAllCertificateNamesOfKey_default_false
protected static final String WHERE_updateKeyStatus
protected static final String WHERE_setDefaultIdentity_reset
protected static final String WHERE_setDefaultIdentity_set
protected static final String WHERE_setDefaultKeyNameForIdentity_reset
protected static final String WHERE_setDefaultKeyNameForIdentity_set
protected static final String WHERE_setDefaultCertificateNameForKey_reset
protected static final String WHERE_setDefaultCertificateNameForKey_set
protected static final String WHERE_deleteCertificateInfo
protected static final String WHERE_deletePublicKeyInfo
protected static final String WHERE_deleteIdentityInfo
public final void activateKey(Name keyName) throws SecurityException
activateKey
in class IdentityStorage
keyName
- The name of the key.SecurityException
public final void deactivateKey(Name keyName) throws SecurityException
deactivateKey
in class IdentityStorage
keyName
- The name of the key.SecurityException
protected abstract void updateKeyStatus(Name keyName, boolean isActive) throws SecurityException
keyName
- The name of the key.isActive
- The value for the 'active' field.SecurityException
protected void checkSetDefaultKeyNameForIdentity(Name keyName, Name identityNameCheck) throws SecurityException
keyName
- The key name.identityNameCheck
- The identity name to check the keyName.SecurityException
- if the identity name does not match the key name
or other problem.Copyright © 2016. All rights reserved.