Accessing credential as key