TODO this is a copy of credentials-plugin/src/main/resources/lib/credentials/ except patched to support checkMethod
