public static void checkRole ( String roleName ) { if ( roleName . length ( ) > 255 ) throw new VOMSError ( "roleName.length()>255" ) ; if ( ! rolePattern . matcher ( roleName ) . matches ( ) ) throw new VOMSError ( "Syntax error in role name: " + roleName ) ; }
This methods checks that the string passed as argument complies with the syntax used by voms to identify roles .