/**
* @see org.rhq.enterprise.server.auth.SubjectManagerLocal#createPrincipal(Subject, String, String)
*/
@RequiredPermission(Permission.MANAGE_SECURITY)
public void createPrincipal(Subject whoami, String username, String password) throws SubjectException {
Principal principal = new Principal(username, CryptoUtil.createPasswordHash("MD5", "base64", null, null,
password));
createPrincipal(whoami, principal);
}