Added credential <-> Map<> conversion methods.