protected Lock getLock() {
    return lock;
  }
Gets the lock object used to protect access to the credential store

@return a Lock object
ambari-server/src/main/java/org/apache/ambari/server/security/encryption/AbstractCredentialStore.java