@utilities.arguments_not_none<EOL><INDENT>def get_credential(self, credential_type):<DEDENT>
if self.has_credential():<EOL><INDENT>return self._credential<EOL><DEDENT>else:<EOL><INDENT>raise errors.IllegalState()<EOL><DEDENT>
Gets the credential represented by the given ``Type`` for transport to a remote service.

        arg:    credential_type (osid.type.Type): the credential format
                ``Type``
        return: (object) - the credential
        raise:  IllegalState - ``has_credential()`` is ``false``
        raise:  NullArgument - ``credential_type`` is ``null``
        raise:  Unsupported - the given ``credential_type`` is not
                supported
        *compliance: mandatory -- This method must be implemented.*
        *implementation notes*: A provider may support multiple
        credential formats for a variety of applications.