static boolean isOctetStringValid(String value,int maxLength){
  if (value == null)   return true;
  if (value.length() > maxLength)   return false;
  return true;
}

static boolean isOctetStringValid ( String value , int maxLength ) { if ( value == null ) return true ; if ( value . length ( ) > maxLength ) return false ; return true ; }
validate the octet string
