Creates a new copy of an existing DOFCredentials. 
- Resource Management:
 - This function allocates resources that must later be freed by calling DOFCredentials_Destroy. 
 
- Parameters
 - 
  
  
 
- Returns
 - A new copy of the DOFCredentials. 
 
- Exceptions
 - 
  
    | NULL | is returned if self is NULL, or there are insufficient resources to create a copy.  |