How to write custom roles in java

Is it Possible to write custom roles within the custom Authplugin class in java. Or am i stuck with the predefined roles?