public void createUser ( User user , String password ) { ProtocolHeader header = new ProtocolHeader ( ) ; header . setType ( ProtocolType . CreateUser ) ; byte [ ] secret = null ; if ( password != null && ! password . isEmpty ( ) ) { secret = ObfuscatUtil . base64Encode ( password . getBytes ( ) ) ; } CreateUserProtocol p = new CreateUserProtocol ( user , secret ) ; connection . submitRequest ( header , p , null ) ; }
Create a User .