public static Credentials copy ( Credentials credentials ) { if ( credentials == null ) { return null ; } return new Credentials ( credentials . login , credentials . password ) ; }
Creates a new copy of authentication pair .