SocketCredentials ( int[] data ) {

        this.data = (byte) data[ 0 ];

        if ( data.length == 4 ) {
            this.pid = data[ 1 ];
            this.uid = data[ 2 ];
            this.gid = data[ 3 ];
        }
        else {
            this.pid = -1;
            this.uid = -1;
            this.gid = -1;
        }
    }